diff options
author | Aleksey Kladov <[email protected]> | 2019-06-11 15:26:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-11 16:28:51 +0100 |
commit | 5e6213b516ab5c9be62c499ba0ea9eb399d68389 (patch) | |
tree | 36131701075a38e2acaf604ab2fc86359575cb3f /crates | |
parent | f2ccc54468348af96d6167da5971749ef0f4ab5e (diff) |
simplify
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index c4826e515..237e1f4a1 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -142,11 +142,11 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn | |||
142 | } | 142 | } |
143 | Some(SelfType(ty)) => { | 143 | Some(SelfType(ty)) => { |
144 | if let Some((adt_def, _)) = ty.as_adt() { | 144 | if let Some((adt_def, _)) = ty.as_adt() { |
145 | match adt_def { | 145 | res.extend(match adt_def { |
146 | hir::AdtDef::Struct(it) => res.extend(from_def_source(db, it)), | 146 | hir::AdtDef::Struct(it) => from_def_source(db, it), |
147 | hir::AdtDef::Union(it) => res.extend(from_def_source(db, it)), | 147 | hir::AdtDef::Union(it) => from_def_source(db, it), |
148 | hir::AdtDef::Enum(it) => res.extend(from_def_source(db, it)), | 148 | hir::AdtDef::Enum(it) => from_def_source(db, it), |
149 | } | 149 | }) |
150 | } | 150 | } |
151 | } | 151 | } |
152 | Some(Pat(_)) => { | 152 | Some(Pat(_)) => { |