From 78de7f0d4a53e92c343b0c12889b423f1f9bd433 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 10 Dec 2020 18:30:49 +0300 Subject: Remove debug print --- crates/completion/src/completions/unqualified_path.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'crates/completion/src/completions/unqualified_path.rs') diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs index 544886d29..2b0924ae5 100644 --- a/crates/completion/src/completions/unqualified_path.rs +++ b/crates/completion/src/completions/unqualified_path.rs @@ -145,13 +145,11 @@ fn fuzzy_completion(acc: &mut Completions, ctx: &CompletionContext) -> Option<() }) .filter(|(mod_path, _)| mod_path.len() > 1) .filter_map(|(import_path, definition)| { - let ie = - ImportEdit { import_path: import_path.clone(), import_scope: import_scope.clone() }; - { - let _p = profile::span("totextedit"); - ie.to_text_edit(ctx.config.merge); - } - render_resolution_with_import(RenderContext::new(ctx), ie, &definition) + render_resolution_with_import( + RenderContext::new(ctx), + ImportEdit { import_path: import_path.clone(), import_scope: import_scope.clone() }, + &definition, + ) }); acc.add_all(possible_imports); -- cgit v1.2.3