mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-31 23:38:45 +00:00
Cleanup
Co-authored-by: LowR <low.ryoshida@gmail.com>
This commit is contained in:
parent
9349769363
commit
047bc47ecd
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ impl Builder {
|
|||
// `PartialOrd` because it has an alias of ">".
|
||||
.filter(|alias| {
|
||||
let mut chars = alias.chars();
|
||||
chars.next().map(unicode_ident::is_xid_start).unwrap_or(false)
|
||||
chars.next().is_some_and(unicode_ident::is_xid_start)
|
||||
&& chars.all(unicode_ident::is_xid_continue)
|
||||
})
|
||||
.join(", ");
|
||||
|
|
Loading…
Reference in a new issue