use char range

This commit is contained in:
Jess Balint 2020-05-22 10:15:59 -05:00
parent 1f9e02c74e
commit d42fd8efb6

View File

@ -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',