aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/hover.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/hover.rs')
-rw-r--r--crates/ra_ide_api/src/hover.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs
index c62683ad4..364bf9f74 100644
--- a/crates/ra_ide_api/src/hover.rs
+++ b/crates/ra_ide_api/src/hover.rs
@@ -105,7 +105,7 @@ impl NavigationTarget {
105 .visit(doc_comments::<ast::EnumDef>) 105 .visit(doc_comments::<ast::EnumDef>)
106 .visit(doc_comments::<ast::TraitDef>) 106 .visit(doc_comments::<ast::TraitDef>)
107 .visit(doc_comments::<ast::Module>) 107 .visit(doc_comments::<ast::Module>)
108 .visit(doc_comments::<ast::TypeDef>) 108 .visit(doc_comments::<ast::TypeAliasDef>)
109 .visit(doc_comments::<ast::ConstDef>) 109 .visit(doc_comments::<ast::ConstDef>)
110 .visit(doc_comments::<ast::StaticDef>) 110 .visit(doc_comments::<ast::StaticDef>)
111 .accept(&node)? 111 .accept(&node)?
@@ -135,7 +135,7 @@ impl NavigationTarget {
135 .visit(|node: &ast::EnumDef| visit_node(node, "enum ")) 135 .visit(|node: &ast::EnumDef| visit_node(node, "enum "))
136 .visit(|node: &ast::TraitDef| visit_node(node, "trait ")) 136 .visit(|node: &ast::TraitDef| visit_node(node, "trait "))
137 .visit(|node: &ast::Module| visit_node(node, "mod ")) 137 .visit(|node: &ast::Module| visit_node(node, "mod "))
138 .visit(|node: &ast::TypeDef| visit_node(node, "type ")) 138 .visit(|node: &ast::TypeAliasDef| visit_node(node, "type "))
139 .visit(|node: &ast::ConstDef| visit_node(node, "const ")) 139 .visit(|node: &ast::ConstDef| visit_node(node, "const "))
140 .visit(|node: &ast::StaticDef| visit_node(node, "static ")) 140 .visit(|node: &ast::StaticDef| visit_node(node, "static "))
141 .accept(&node)? 141 .accept(&node)?