Skip to content

Commit f8ce946

Browse files
committed
fix: use box
1 parent 9788df3 commit f8ce946

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/common.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use fastpfor::{Composition, Compressor, FastPFOR, FastPForResult, VariableByte};
44

55
pub enum Codec {
66
VariableByte(VariableByte),
7-
Composition(Composition),
7+
Composition(Box<Composition>),
88
}
99

1010
impl Codec {
@@ -45,12 +45,13 @@ impl Codec {
4545
}
4646
}
4747

48+
4849
pub fn get_codecs() -> Vec<Codec> {
4950
vec![
5051
Codec::VariableByte(VariableByte::new()),
51-
Codec::Composition(Composition::new(
52+
Codec::Composition(Box::new(Composition::new(
5253
FastPFOR::default(),
5354
VariableByte::new(),
54-
)),
55+
))),
5556
]
5657
}

0 commit comments

Comments
 (0)