diff --git a/instant-segment/src/lib.rs b/instant-segment/src/lib.rs index 9bf4f6b..e1fa1e8 100644 --- a/instant-segment/src/lib.rs +++ b/instant-segment/src/lib.rs @@ -181,16 +181,6 @@ pub struct Search { result: Vec, } -impl Default for Search { - fn default() -> Self { - Self { - memo: HashMap::default(), - best: [BitVec::default(); SEGMENT_SIZE], - result: Vec::new(), - } - } -} - impl Search { fn clear(&mut self) { self.memo.clear(); @@ -201,6 +191,16 @@ impl Search { } } +impl Default for Search { + fn default() -> Self { + Self { + memo: HashMap::default(), + best: [BitVec::default(); SEGMENT_SIZE], + result: Vec::new(), + } + } +} + #[derive(Clone, Copy, Default)] struct BitVec([u64; 4]);