mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: Replace Display impl for Name
This commit is contained in:
parent
2f840c2236
commit
c7ef6c25b7
108 changed files with 1045 additions and 656 deletions
|
@ -243,7 +243,7 @@ pub fn resolve_completion_edits(
|
|||
config.prefer_no_std,
|
||||
)
|
||||
})
|
||||
.find(|mod_path| mod_path.to_string() == full_import_path);
|
||||
.find(|mod_path| mod_path.display(db).to_string() == full_import_path);
|
||||
if let Some(import_path) = import {
|
||||
insert_use::insert_use(&new_ast, mod_path_to_ast(&import_path), &config.insert_use);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue