Skip to content

Commit b8f73f6

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codec/brotli/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl BrotliEncoder {
4141
&mut None,
4242
&mut |_, _, _, _| (),
4343
) {
44-
return Err(io::Error::new(io::ErrorKind::Other, "brotli error"));
44+
return Err(io::Error::other("brotli error"));
4545
}
4646

4747
input.advance(input_len);

0 commit comments

Comments
 (0)