Skip to content

Commit c20c334

Browse files
authored
Fix clippy error in bzip2 encoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent 381bf51 commit c20c334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codec/bzip2/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl BzEncoder {
5757
let status = self
5858
.compress
5959
.compress(input.unwritten(), output.unwritten_mut(), action)
60-
.map_err(|e| io::Error::other(e))?;
60+
.map_err(io::Error::other)?;
6161

6262
input.advance((self.compress.total_in() - prior_in) as usize);
6363
output.advance((self.compress.total_out() - prior_out) as usize);

0 commit comments

Comments
 (0)