Skip to content

Commit 5a6065e

Browse files
bors[bot]matklad
andauthored
Merge #6802
6802: Minor, more orthogonal code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents a6c8098 + 78de7f0 commit 5a6065e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

crates/completion/src/completions/unqualified_path.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,11 @@ fn fuzzy_completion(acc: &mut Completions, ctx: &CompletionContext) -> Option<()
145145
})
146146
.filter(|(mod_path, _)| mod_path.len() > 1)
147147
.filter_map(|(import_path, definition)| {
148-
let ie =
149-
ImportEdit { import_path: import_path.clone(), import_scope: import_scope.clone() };
150-
{
151-
let _p = profile::span("totextedit");
152-
ie.to_text_edit(ctx.config.merge);
153-
}
154-
render_resolution_with_import(RenderContext::new(ctx), ie, &definition)
148+
render_resolution_with_import(
149+
RenderContext::new(ctx),
150+
ImportEdit { import_path: import_path.clone(), import_scope: import_scope.clone() },
151+
&definition,
152+
)
155153
});
156154

157155
acc.add_all(possible_imports);

0 commit comments

Comments
 (0)