diff --git a/src/write.rs b/src/write.rs index 82764af6..b50703e6 100644 --- a/src/write.rs +++ b/src/write.rs @@ -287,11 +287,8 @@ impl<'a> arbitrary::Arbitrary<'a> for FileOptions<'a, ExtendedFileOptions> { }; #[cfg(feature = "deflate-zopfli")] if options.compression_method == CompressionMethod::Deflated && bool::arbitrary(u)? { - options.zopfli_buffer_size = Some(1 << u.int_in_range(8..=29)? * if bool::arbitrary(u) { - 2 - } else { - 3 - }); + options.zopfli_buffer_size = + Some(1 << u.int_in_range(8..=29)? * if bool::arbitrary(u) { 2 } else { 3 }); } u.arbitrary_loop(Some(0), Some((u16::MAX / 4) as u32), |u| { options