This commit is contained in:
Lukas Wirth 2024-05-22 20:45:54 +02:00
parent b75301cec8
commit 3a7dcf91c4
3 changed files with 11 additions and 16 deletions

View file

@ -266,12 +266,7 @@ pub fn resolve_completion_edits(
);
let import = items_with_name
.filter_map(|candidate| {
current_module.find_use_path(
db,
candidate,
config.insert_use.prefix_kind,
cfg,
)
current_module.find_use_path(db, candidate, config.insert_use.prefix_kind, cfg)
})
.find(|mod_path| mod_path.display(db).to_string() == full_import_path);
if let Some(import_path) = import {