We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88c171b commit 3410595Copy full SHA for 3410595
src/codec/xz2/decoder.rs
@@ -46,11 +46,10 @@ impl Decode for Xz2Decoder {
46
match status {
47
Status::Ok => Ok(false),
48
Status::StreamEnd => Ok(true),
49
- Status::GetCheck => Err(io::Error::new(
50
- io::ErrorKind::Other,
51
- "Unexpected lzma integrity check",
+ Status::GetCheck => Err(io::Error::other(
+ "Unexpected lzma integrity check"
52
)),
53
- Status::MemNeeded => Err(io::Error::new(io::ErrorKind::Other, "More memory needed")),
+ Status::MemNeeded => Err(io::Error::other("More memory needed")),
54
}
55
56
0 commit comments