diff --git a/instant-segment/src/lib.rs b/instant-segment/src/lib.rs index 0f524a8..911b4a6 100644 --- a/instant-segment/src/lib.rs +++ b/instant-segment/src/lib.rs @@ -167,7 +167,7 @@ impl<'a> SegmentState<'a> { } } -#[derive(Clone)] +#[derive(Clone, Default)] pub struct Search { candidates: Vec, result: Vec, @@ -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,