aboutsummaryrefslogtreecommitdiff
path: root/crates/completion
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-11-16 19:24:54 +0000
committerKirill Bulatov <[email protected]>2020-11-16 19:24:54 +0000
commit410996893489f6c64b472e6128f099f1de229806 (patch)
treebf0883d1d5a80ac12a562cf289a2bd745fe46211 /crates/completion
parentd776c67226fe12e75fc526966cba06358c2b8113 (diff)
Remove query aliases
Diffstat (limited to 'crates/completion')
-rw-r--r--crates/completion/src/completions/unqualified_path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs
index 362d31f25..4f8ec1e67 100644
--- a/crates/completion/src/completions/unqualified_path.rs
+++ b/crates/completion/src/completions/unqualified_path.rs
@@ -72,7 +72,7 @@ fn complete_enum_variants(acc: &mut Completions, ctx: &CompletionContext, ty: &T
72} 72}
73 73
74fn fuzzy_completion(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> { 74fn fuzzy_completion(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> {
75 let _p = profile::span("fuzzy_completion®"); 75 let _p = profile::span("fuzzy_completion");
76 let current_module = ctx.scope.module()?; 76 let current_module = ctx.scope.module()?;
77 let anchor = ctx.name_ref_syntax.as_ref()?; 77 let anchor = ctx.name_ref_syntax.as_ref()?;
78 let import_scope = ImportScope::find_insert_use_container(anchor.syntax(), &ctx.sema)?; 78 let import_scope = ImportScope::find_insert_use_container(anchor.syntax(), &ctx.sema)?;