mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
use char range
This commit is contained in:
parent
1f9e02c74e
commit
d42fd8efb6
@ -54,8 +54,8 @@ pub(crate) fn change_lifetime_anon_to_named(acc: &mut Assists, ctx: &AssistConte
|
||||
param_name
|
||||
})
|
||||
.collect();
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
.chars()
|
||||
(b'a'..=b'z')
|
||||
.map(char::from)
|
||||
.find(|c| !used_lifetime_params.contains(&c.to_string()))?
|
||||
}
|
||||
None => 'a',
|
||||
|
Loading…
Reference in New Issue
Block a user