mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Simplify
This commit is contained in:
parent
b75301cec8
commit
3a7dcf91c4
3 changed files with 11 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue