Cleanup
Co-authored-by: LowR <low.ryoshida@gmail.com>
This commit is contained in:
parent
9349769363
commit
047bc47ecd
@ -435,7 +435,7 @@ pub(crate) fn build(self, db: &RootDatabase) -> CompletionItem {
|
||||
// `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 New Issue
Block a user