diff options
author | Aleksey Kladov <[email protected]> | 2020-02-07 11:51:12 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-07 13:25:16 +0000 |
commit | f55be75a17dab2ca23b34c45e7597fe19a5fc8e4 (patch) | |
tree | 9b285fc57782ccbda0e08b934807420e6471b721 /crates/ra_ide/src/hover.rs | |
parent | 4d0d113c7d17483f3a6e0d09db7cc0cb5ed145c4 (diff) |
Remove irrelevant distinction
Diffstat (limited to 'crates/ra_ide/src/hover.rs')
-rw-r--r-- | crates/ra_ide/src/hover.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 315b88190..ab3f513f2 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -105,11 +105,6 @@ fn hover_text_from_name_kind(db: &RootDatabase, name_kind: NameKind) -> Option<S | |||
105 | _ => None, | 105 | _ => None, |
106 | } | 106 | } |
107 | } | 107 | } |
108 | AssocItem(it) => match it { | ||
109 | hir::AssocItem::Function(it) => from_def_source(db, it), | ||
110 | hir::AssocItem::Const(it) => from_def_source(db, it), | ||
111 | hir::AssocItem::TypeAlias(it) => from_def_source(db, it), | ||
112 | }, | ||
113 | Def(it) => match it { | 108 | Def(it) => match it { |
114 | hir::ModuleDef::Module(it) => match it.definition_source(db).value { | 109 | hir::ModuleDef::Module(it) => match it.definition_source(db).value { |
115 | hir::ModuleSource::Module(it) => { | 110 | hir::ModuleSource::Module(it) => { |