Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/inlay_hints/fn_lifetime_fn.rs')
| -rw-r--r-- | crates/ide/src/inlay_hints/fn_lifetime_fn.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/inlay_hints/fn_lifetime_fn.rs b/crates/ide/src/inlay_hints/fn_lifetime_fn.rs index 725ec27155..eb97f2fb81 100644 --- a/crates/ide/src/inlay_hints/fn_lifetime_fn.rs +++ b/crates/ide/src/inlay_hints/fn_lifetime_fn.rs @@ -130,11 +130,11 @@ pub(super) fn hints( [(_, _, lifetime, _), ..] if self_param.is_some() || potential_lt_refs.len() == 1 => { match lifetime { Some(lt) => match lt.text().as_str() { - "'_" => allocated_lifetimes.get(0).cloned(), + "'_" => allocated_lifetimes.first().cloned(), "'static" => None, name => Some(name.into()), }, - None => allocated_lifetimes.get(0).cloned(), + None => allocated_lifetimes.first().cloned(), } } [..] => None, |