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