diff options
author | Jess Balint <[email protected]> | 2020-05-22 16:15:59 +0100 |
---|---|---|
committer | Jess Balint <[email protected]> | 2020-05-22 16:15:59 +0100 |
commit | d42fd8efb6019c08371007df68ef3a38c2e86a45 (patch) | |
tree | c41d97899075acc67791dda80f87d1186db65739 /crates/ra_assists/src/handlers | |
parent | 1f9e02c74e7822a490466a605fa384ce1b5e3afe (diff) |
use char range
Diffstat (limited to 'crates/ra_assists/src/handlers')
-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', |