Skip to content

Commit a743903

Browse files
committed
remove unicode-ident dependency
1 parent 91581be commit a743903

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ide-completion/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ itertools = "0.10.5"
1717

1818
once_cell = "1.17.0"
1919
smallvec.workspace = true
20-
unicode-ident = "1.0.0"
2120

2221

2322
# local deps

crates/ide-completion/src/item.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ impl Builder {
437437
// `PartialOrd` because it has an alias of ">".
438438
.filter(|alias| {
439439
let mut chars = alias.chars();
440-
chars.next().is_some_and(unicode_ident::is_xid_start)
441-
&& chars.all(unicode_ident::is_xid_continue)
440+
chars.next().is_some_and(char::is_alphabetic)
441+
&& chars.all(|c| c.is_alphanumeric() || c == '_')
442442
})
443443
// Deliberately concatenated without separators as adding separators e.g.
444444
// `alias1, alias2` results in LSP clients continuing to display the completion even

0 commit comments

Comments
 (0)