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 381bf51 commit c20c334Copy full SHA for c20c334
src/codec/bzip2/encoder.rs
@@ -57,7 +57,7 @@ impl BzEncoder {
57
let status = self
58
.compress
59
.compress(input.unwritten(), output.unwritten_mut(), action)
60
- .map_err(|e| io::Error::other(e))?;
+ .map_err(io::Error::other)?;
61
62
input.advance((self.compress.total_in() - prior_in) as usize);
63
output.advance((self.compress.total_out() - prior_out) as usize);
0 commit comments