From 047bc47ecd5f0769b5eaa4e56001b59bdfc5cdf1 Mon Sep 17 00:00:00 2001 From: Max Heller Date: Fri, 28 Jul 2023 09:22:22 -0400 Subject: [PATCH] Cleanup Co-authored-by: LowR --- crates/ide-completion/src/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide-completion/src/item.rs b/crates/ide-completion/src/item.rs index d5713db0a36..40e51201987 100644 --- a/crates/ide-completion/src/item.rs +++ b/crates/ide-completion/src/item.rs @@ -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(", ");