mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
use char range
This commit is contained in:
parent
1f9e02c74e
commit
d42fd8efb6
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue