Apply clippy suggestion

This commit is contained in:
Dirkjan Ochtman 2022-02-28 11:35:38 +01:00
parent 3709223fa9
commit eac10fb553
1 changed files with 1 additions and 10 deletions

View File

@ -167,7 +167,7 @@ impl<'a> SegmentState<'a> {
}
}
#[derive(Clone)]
#[derive(Clone, Default)]
pub struct Search {
candidates: Vec<Candidate>,
result: Vec<String>,
@ -185,15 +185,6 @@ impl Search {
}
}
impl Default for Search {
fn default() -> Self {
Self {
candidates: Vec::new(),
result: Vec::new(),
}
}
}
#[derive(Clone, Copy, Debug, Default)]
struct Candidate {
len: usize,