Apply clippy suggestion
This commit is contained in:
parent
3709223fa9
commit
eac10fb553
|
@ -167,7 +167,7 @@ impl<'a> SegmentState<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone, Default)]
|
||||||
pub struct Search {
|
pub struct Search {
|
||||||
candidates: Vec<Candidate>,
|
candidates: Vec<Candidate>,
|
||||||
result: Vec<String>,
|
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)]
|
#[derive(Clone, Copy, Debug, Default)]
|
||||||
struct Candidate {
|
struct Candidate {
|
||||||
len: usize,
|
len: usize,
|
||||||
|
|
Loading…
Reference in New Issue