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 7e6da26 commit abdacc9Copy full SHA for abdacc9
src/codec/flate/decoder.rs
@@ -51,7 +51,7 @@ impl Decode for FlateDecoder {
51
match self.decode(input, output, FlushDecompress::None)? {
52
Status::Ok => Ok(false),
53
Status::StreamEnd => Ok(true),
54
- Status::BufError => Err(io::Error::new(io::ErrorKind::Other, "unexpected BufError")),
+ Status::BufError => Err(io::Error::other("unexpected BufError")),
55
}
56
57
@@ -91,7 +91,7 @@ impl Decode for FlateDecoder {
91
)? {
92
93
94
95
96
97
0 commit comments