diff --git a/Cargo.toml b/Cargo.toml index b7e0fb8a..11a15a12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" flate2 = { version = "1.0.0", default-features = false, optional = true } time = { version = "0.1", optional = true } byteorder = "1.3" -bzip2 = { version = "0.3", optional = true } +bzip2 = { version = "0.4", optional = true } crc32fast = "1.0" thiserror = "1.0" diff --git a/src/write.rs b/src/write.rs index ca2e3fb1..487edfbc 100644 --- a/src/write.rs +++ b/src/write.rs @@ -598,7 +598,7 @@ impl GenericZipWriter { )), #[cfg(feature = "bzip2")] CompressionMethod::Bzip2 => { - GenericZipWriter::Bzip2(BzEncoder::new(bare, bzip2::Compression::Default)) + GenericZipWriter::Bzip2(BzEncoder::new(bare, bzip2::Compression::default())) } CompressionMethod::Unsupported(..) => { return Err(ZipError::UnsupportedArchive("Unsupported compression"))