only use compression when the feature is enabled
@@ -49,7 +49,8 @@ impl RngCore for SledGen {
}
pub fn fuzz_then_shrink(buf: &[u8]) {
- let use_compression = buf.get(0).unwrap_or(&0) % 2 == 0;
+ let use_compression = cfg!(feature = "compression") &&
+ buf.get(0).unwrap_or(&0) % 2 == 0;
let ops: Vec<Op> = buf
.chunks(2)
@@ -201,6 +202,9 @@ pub fn prop_tree_matches_btreemap(
super::setup_logger();
+ let use_compression = cfg!(feature = "compression") &&
+ use_compression;
+
let config = ConfigBuilder::new()
.temporary(true)
.use_compression(use_compression)
