diff options
| author | Max Heller <max.a.heller@gmail.com> | 2023-07-28 09:22:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-28 09:22:22 -0400 |
| commit | 047bc47ecd5f0769b5eaa4e56001b59bdfc5cdf1 (patch) | |
| tree | 6fca2a61b718d7794e6096135a787803451f4334 | |
| parent | 9349769363624795db79a860b5a4b46fec9b0930 (diff) | |
| download | rust-047bc47ecd5f0769b5eaa4e56001b59bdfc5cdf1.tar.gz rust-047bc47ecd5f0769b5eaa4e56001b59bdfc5cdf1.zip | |
Cleanup
Co-authored-by: LowR <low.ryoshida@gmail.com>
| -rw-r--r-- | crates/ide-completion/src/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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(", "); |
