diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs index 544886d298..2b0924ae5a 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);