diff options
Diffstat (limited to 'crates/ra_ide_api/src/hover.rs')
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 4 |
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 77657607b..ad00abe49 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -4,7 +4,7 @@ use ra_syntax::{ | |||
4 | ast::{self, DocCommentsOwner}, | 4 | ast::{self, DocCommentsOwner}, |
5 | algo::{find_covering_element, find_node_at_offset, ancestors_at_offset, visit::{visitor, Visitor}}, | 5 | algo::{find_covering_element, find_node_at_offset, ancestors_at_offset, visit::{visitor, Visitor}}, |
6 | }; | 6 | }; |
7 | use hir::HirDisplay; | 7 | use hir::{HirDisplay, HasSource}; |
8 | 8 | ||
9 | use crate::{ | 9 | use crate::{ |
10 | db::RootDatabase, | 10 | db::RootDatabase, |
@@ -226,7 +226,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn | |||
226 | 226 | ||
227 | fn from_def_source<A, D>(db: &RootDatabase, def: D) -> Option<String> | 227 | fn from_def_source<A, D>(db: &RootDatabase, def: D) -> Option<String> |
228 | where | 228 | where |
229 | D: hir::HasSource<Ast = TreeArc<A>>, | 229 | D: HasSource<Ast = TreeArc<A>>, |
230 | A: ast::DocCommentsOwner + ast::NameOwner + ShortLabel, | 230 | A: ast::DocCommentsOwner + ast::NameOwner + ShortLabel, |
231 | { | 231 | { |
232 | let src = def.source(db); | 232 | let src = def.source(db); |