diff options
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index 9c35db2a4..f56965ef5 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -18,6 +18,12 @@ pub struct HoverResult { | |||
18 | exact: bool, | 18 | exact: bool, |
19 | } | 19 | } |
20 | 20 | ||
21 | impl Default for HoverResult { | ||
22 | fn default() -> Self { | ||
23 | HoverResult::new() | ||
24 | } | ||
25 | } | ||
26 | |||
21 | impl HoverResult { | 27 | impl HoverResult { |
22 | pub fn new() -> HoverResult { | 28 | pub fn new() -> HoverResult { |
23 | HoverResult { | 29 | HoverResult { |