aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/completion/src/completions/flyimport.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/completion/src/completions/flyimport.rs b/crates/completion/src/completions/flyimport.rs
index 5c04d5c41..47e797ac8 100644
--- a/crates/completion/src/completions/flyimport.rs
+++ b/crates/completion/src/completions/flyimport.rs
@@ -73,7 +73,7 @@ pub(crate) fn import_on_the_fly(acc: &mut Completions, ctx: &CompletionContext)
73 } 73 }
74 let potential_import_name = { 74 let potential_import_name = {
75 let token_kind = ctx.token.kind(); 75 let token_kind = ctx.token.kind();
76 if token_kind == T![.] || token_kind == T![::] { 76 if matches!(token_kind, T![.] | T![::]) {
77 String::new() 77 String::new()
78 } else { 78 } else {
79 ctx.token.to_string() 79 ctx.token.to_string()