diff options
Diffstat (limited to 'crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs')
-rw-r--r-- | crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs b/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs index 7101d9aaf..67d50cfda 100644 --- a/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs +++ b/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs | |||
@@ -54,8 +54,8 @@ pub(crate) fn change_lifetime_anon_to_named(acc: &mut Assists, ctx: &AssistConte | |||
54 | param_name | 54 | param_name |
55 | }) | 55 | }) |
56 | .collect(); | 56 | .collect(); |
57 | "abcdefghijklmnopqrstuvwxyz" | 57 | (b'a'..=b'z') |
58 | .chars() | 58 | .map(char::from) |
59 | .find(|c| !used_lifetime_params.contains(&c.to_string()))? | 59 | .find(|c| !used_lifetime_params.contains(&c.to_string()))? |
60 | } | 60 | } |
61 | None => 'a', | 61 | None => 'a', |