style: cargo fmt --all
This commit is contained in:
parent
20fa9edd14
commit
42af7158e9
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue