mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +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,
|
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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue