From 42af7158e9c8fc0e679d266d249e85d06d6fe1ce Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Tue, 21 May 2024 08:46:24 -0700 Subject: [PATCH] style: cargo fmt --all --- src/write.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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