Skip to content

Commit

Permalink
Bump bzip2 to 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Mar 21, 2023
1 parent c7d21ba commit 5431204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions src/util/content_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Vec<u8>> {
let mut ret = Vec::new();
Expand Down

0 comments on commit 5431204

Please sign in to comment.