Fix clippy::new_without_default
This commit is contained in:
@@ -18,6 +18,12 @@ pub struct HoverResult {
|
|||||||
exact: bool,
|
exact: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for HoverResult {
|
||||||
|
fn default() -> Self {
|
||||||
|
HoverResult::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl HoverResult {
|
impl HoverResult {
|
||||||
pub fn new() -> HoverResult {
|
pub fn new() -> HoverResult {
|
||||||
HoverResult {
|
HoverResult {
|
||||||
|
|||||||
Reference in New Issue
Block a user