mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove irrelevant distinction
This commit is contained in:
parent
4d0d113c7d
commit
f55be75a17
6 changed files with 22 additions and 48 deletions
|
@ -128,7 +128,6 @@ pub(crate) fn find_all_refs(
|
|||
let declaration = match def.kind {
|
||||
NameKind::Macro(mac) => mac.to_nav(db),
|
||||
NameKind::Field(field) => field.to_nav(db),
|
||||
NameKind::AssocItem(assoc) => assoc.to_nav(db),
|
||||
NameKind::Def(def) => NavigationTarget::from_def(db, def)?,
|
||||
NameKind::SelfType(imp) => imp.to_nav(db),
|
||||
NameKind::Local(local) => local.to_nav(db),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue