Skip to content

Commit 047bc47

Browse files
max-hellerlowr
andauthored
Cleanup
Co-authored-by: LowR <low.ryoshida@gmail.com>
1 parent 9349769 commit 047bc47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide-completion/src/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ impl Builder {
435435
// `PartialOrd` because it has an alias of ">".
436436
.filter(|alias| {
437437
let mut chars = alias.chars();
438-
chars.next().map(unicode_ident::is_xid_start).unwrap_or(false)
438+
chars.next().is_some_and(unicode_ident::is_xid_start)
439439
&& chars.all(unicode_ident::is_xid_continue)
440440
})
441441
.join(", ");

0 commit comments

Comments
 (0)