diff options
author | Alan Du <[email protected]> | 2019-06-04 07:32:02 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2019-06-04 23:05:07 +0100 |
commit | 682bf04bf4a84e9c309b4ad2079ff08a3b09770b (patch) | |
tree | 48928bdb5dcafe2a81debb51df23804c678824ab /crates/ra_ide_api | |
parent | 6939011b273c8ac63a29faed6febef5a94035d40 (diff) |
Fix clippy::new_without_default
Diffstat (limited to 'crates/ra_ide_api')
-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 { |