mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Only store item name instead of full path
This commit is contained in:
parent
860628af7c
commit
2b106648a7
2 changed files with 149 additions and 214 deletions
|
@ -360,7 +360,7 @@ fn calculate_best_path(
|
|||
prefer_no_std,
|
||||
)?;
|
||||
cov_mark::hit!(partially_imported);
|
||||
path.push_segment(info.path.segments.last()?.clone());
|
||||
path.push_segment(info.name.clone());
|
||||
Some(path)
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue