Skip to content

Commit

Permalink
modified: src/utils.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkLoc committed May 18, 2024
1 parent ef61857 commit 6970790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ where
)))
} else if zx_flag {
Ok(Box::new(BufReader::with_capacity(
BUFF_SIZE,
xz2::read::XzDecoder::new(fp),
BUFF_SIZE,
xz2::read::XzDecoder::new_multi_decoder(fp),
)))
} else {
Ok(Box::new(BufReader::with_capacity(BUFF_SIZE, fp)))
Expand Down Expand Up @@ -107,7 +107,7 @@ where
)))
} else if file_name.as_ref().extension().is_some_and(|ext| ext == "xz") {
Ok(Box::new(BufWriter::with_capacity(
BUFF_SIZE,
BUFF_SIZE,
xz2::write::XzEncoder::new(fp, compression_level),
)))
} else {
Expand Down

0 comments on commit 6970790

Please sign in to comment.