diff options
Diffstat (limited to 'crates/ra_ide_api/src/hover.rs')
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index 318708df3..ba328efa1 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -100,8 +100,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn | |||
100 | let mut range = None; | 100 | let mut range = None; |
101 | if let Some(name_ref) = find_node_at_offset::<ast::NameRef>(file.syntax(), position.offset) { | 101 | if let Some(name_ref) = find_node_at_offset::<ast::NameRef>(file.syntax(), position.offset) { |
102 | let mut no_fallback = false; | 102 | let mut no_fallback = false; |
103 | let name_kind = | 103 | let name_kind = classify_name_ref(db, position.file_id, &name_ref).map(|d| d.kind); |
104 | classify_name_ref(db, position.file_id, &name_ref).and_then(|d| Some(d.item)); | ||
105 | match name_kind { | 104 | match name_kind { |
106 | Some(Macro(it)) => { | 105 | Some(Macro(it)) => { |
107 | let src = it.source(db); | 106 | let src = it.source(db); |