diff --git a/Cargo.toml b/Cargo.toml index e9e089b..411bea3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ blake3 = "1.3" flate2 = "1.0" rfsapi = "0.1" xml-rs = "0.8" -bzip2 = "0.3" +bzip2 = "0.4" ctrlc = "3.1" regex = "1.2" serde = "0.9" diff --git a/src/util/content_encoding.rs b/src/util/content_encoding.rs index 7ec0b8b..8e3087b 100644 --- a/src/util/content_encoding.rs +++ b/src/util/content_encoding.rs @@ -4,7 +4,6 @@ use flate2::write::{DeflateEncoder, GzEncoder}; use flate2::Compression as Flate2Compression; use std::io::{self, Error as IoError, Write}; use iron::headers::{QualityItem, Encoding}; -use bzip2::Compression as BzCompression; use std::collections::BTreeSet; use bzip2::write::BzEncoder; use unicase::UniCase; @@ -124,7 +123,7 @@ macro_rules! encode_fn { encode_fn!(encode_str_gzip, encode_file_gzip, GzEncoder, Flate2Compression::default()); encode_fn!(encode_str_deflate, encode_file_deflate, DeflateEncoder, Flate2Compression::default()); -encode_fn!(encode_str_bzip2, encode_file_bzip2, BzEncoder, BzCompression::Default); +encode_fn!(encode_str_bzip2, encode_file_bzip2, BzEncoder, Default::default()); fn encode_str_brotli(dt: &str) -> Option> { let mut ret = Vec::new();