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 abdacc9 commit f4769ffCopy full SHA for f4769ff
src/codec/flate/encoder.rs
@@ -51,7 +51,7 @@ impl Encode for FlateEncoder {
51
match self.encode(input, output, FlushCompress::None)? {
52
Status::Ok => Ok(()),
53
Status::StreamEnd => unreachable!(),
54
- Status::BufError => Err(io::Error::new(io::ErrorKind::Other, "unexpected BufError")),
+ Status::BufError => Err(io::Error::other("unexpected BufError")),
55
}
56
57
@@ -100,7 +100,7 @@ impl Encode for FlateEncoder {
100
)? {
101
Status::Ok => Ok(false),
102
Status::StreamEnd => Ok(true),
103
104
105
106
0 commit comments