diff --git a/instant-segment/Cargo.toml b/instant-segment/Cargo.toml index 01c93c6..495301f 100644 --- a/instant-segment/Cargo.toml +++ b/instant-segment/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "instant-segment" -version = "0.7.2" +version = "0.8.0" authors = ["Dirkjan Ochtman "] edition = "2018" license = "Apache-2.0" diff --git a/instant-segment/src/lib.rs b/instant-segment/src/lib.rs index d929a47..658141f 100644 --- a/instant-segment/src/lib.rs +++ b/instant-segment/src/lib.rs @@ -177,7 +177,7 @@ impl<'a> SegmentState<'a> { #[derive(Clone)] pub struct Search { memo: HashMap<(u8, u8, u8), (f64, BitVec)>, - best: [BitVec; SEGMENT_SIZE], + best: Box<[BitVec; SEGMENT_SIZE]>, result: Vec, } @@ -200,7 +200,7 @@ impl Default for Search { fn default() -> Self { Self { memo: HashMap::default(), - best: [BitVec::default(); SEGMENT_SIZE], + best: Box::new([BitVec::default(); SEGMENT_SIZE]), result: Vec::new(), } }