Fix clippy::new_without_default

This commit is contained in:
Alan Du 2019-06-04 02:32:02 -04:00
parent 6939011b27
commit 682bf04bf4

View file

@ -18,6 +18,12 @@ pub struct HoverResult {
exact: bool,
}
impl Default for HoverResult {
fn default() -> Self {
HoverResult::new()
}
}
impl HoverResult {
pub fn new() -> HoverResult {
HoverResult {