style: cargo fmt --all

This commit is contained in:
Chris Hennick 2024-05-21 08:46:24 -07:00
parent 20fa9edd14
commit 42af7158e9
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -1516,7 +1516,10 @@ impl<W: Write + Seek> GenericZipWriter<W> {
}
#[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<W: Write + Seek> GenericZipWriter<W> {
#[cfg(feature = "_deflate-any")]
fn deflate_compression_level_range() -> std::ops::RangeInclusive<i64> {
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