mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Remove irrelevant distinction
This commit is contained in:
parent
4d0d113c7d
commit
f55be75a17
6 changed files with 22 additions and 48 deletions
|
@ -105,11 +105,6 @@ fn hover_text_from_name_kind(db: &RootDatabase, name_kind: NameKind) -> Option<S
|
|||
_ => None,
|
||||
}
|
||||
}
|
||||
AssocItem(it) => match it {
|
||||
hir::AssocItem::Function(it) => from_def_source(db, it),
|
||||
hir::AssocItem::Const(it) => from_def_source(db, it),
|
||||
hir::AssocItem::TypeAlias(it) => from_def_source(db, it),
|
||||
},
|
||||
Def(it) => match it {
|
||||
hir::ModuleDef::Module(it) => match it.definition_source(db).value {
|
||||
hir::ModuleSource::Module(it) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue