From eac10fb553f293d984b5256711de49f8cddebd30 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 28 Feb 2022 11:35:38 +0100 Subject: [PATCH] Apply clippy suggestion --- instant-segment/src/lib.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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,