Skip to content

Commit 5ab7ecd

Browse files
authored
Fix clippy error in brotli decoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent aa03267 commit 5ab7ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codec/brotli/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl BrotliDecoder {
4141
&mut self.state,
4242
) {
4343
BrotliResult::ResultFailure => {
44-
return Err(io::Error::new(io::ErrorKind::Other, "brotli error"))
44+
return Err(io::Error::other("brotli error"))
4545
}
4646
status => status,
4747
};

0 commit comments

Comments
 (0)