Skip to content

Commit 88c171b

Browse files
authored
Fix clippy error in gzip encoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent b8b89bc commit 88c171b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/codec/gzip/encoder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ impl Encode for GzipEncoder {
7272
}
7373

7474
State::Footer(_) | State::Done => {
75-
return Err(io::Error::new(
76-
io::ErrorKind::Other,
77-
"encode after complete",
78-
));
75+
return Err(io::Error::other("encode after complete"));
7976
}
8077
};
8178

0 commit comments

Comments
 (0)