Skip to content

Commit 3410595

Browse files
authored
Fix clippy error in gzip decoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent 88c171b commit 3410595

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/codec/xz2/decoder.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ impl Decode for Xz2Decoder {
4646
match status {
4747
Status::Ok => Ok(false),
4848
Status::StreamEnd => Ok(true),
49-
Status::GetCheck => Err(io::Error::new(
50-
io::ErrorKind::Other,
51-
"Unexpected lzma integrity check",
49+
Status::GetCheck => Err(io::Error::other(
50+
"Unexpected lzma integrity check"
5251
)),
53-
Status::MemNeeded => Err(io::Error::new(io::ErrorKind::Other, "More memory needed")),
52+
Status::MemNeeded => Err(io::Error::other("More memory needed")),
5453
}
5554
}
5655

0 commit comments

Comments
 (0)