diff --git a/src/write.rs b/src/write.rs index 5e6bf206..f97822b1 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1516,7 +1516,10 @@ impl GenericZipWriter { } #[cfg(feature = "_deflate-any")] CompressionMethod::Deflated => { - let default = if cfg!(all(feature = "deflate-zopfli", not(feature = "deflate-flate2"))) { + let default = if cfg!(all( + feature = "deflate-zopfli", + not(feature = "deflate-flate2") + )) { 24 } else { Compression::default().level() as i64 @@ -1694,8 +1697,7 @@ impl GenericZipWriter { #[cfg(feature = "_deflate-any")] fn deflate_compression_level_range() -> std::ops::RangeInclusive { - let min = if cfg!(feature = "deflate-flate2") - { + let min = if cfg!(feature = "deflate-flate2") { Compression::fast().level() as i64 } else { Compression::best().level() as i64 + 1