diff options
Diffstat (limited to 'crates/ra_ide_api')
-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(_)) => { |