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 3410595 commit 12059f9Copy full SHA for 12059f9
src/codec/xz2/encoder.rs
@@ -48,11 +48,10 @@ impl Encode for Xz2Encoder {
48
49
match status {
50
Status::Ok | Status::StreamEnd => Ok(()),
51
- Status::GetCheck => Err(io::Error::new(
52
- io::ErrorKind::Other,
53
- "Unexpected lzma integrity check",
+ Status::GetCheck => Err(io::Error::other(
+ "Unexpected lzma integrity check"
54
)),
55
- Status::MemNeeded => Err(io::Error::new(io::ErrorKind::Other, "out of memory")),
+ Status::MemNeeded => Err(io::Error::other("out of memory")),
56
}
57
58
0 commit comments