mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Choose & over ref, make nav target's name more intuitive.
This commit is contained in:
parent
1222869b3e
commit
d49924dc6e
2 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@ impl TryToNav for FileSymbol {
|
|||
|
||||
Some(NavigationTarget {
|
||||
file_id: full_range.file_id,
|
||||
name: self.def.name(db)?.to_smol_str(),
|
||||
name: if self.is_alias { self.def.name(db)?.to_smol_str() } else { self.name.clone() },
|
||||
alias: if self.is_alias { Some(self.name.clone()) } else { None },
|
||||
kind: Some(hir::ModuleDefId::from(self.def).into()),
|
||||
full_range: full_range.range,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue