mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Fix clippy::new_without_default
This commit is contained in:
parent
6939011b27
commit
682bf04bf4
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue