Skip to content

Commit b8b89bc

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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/codec/gzip/header.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,7 @@ impl Parser {
156156
}
157157

158158
State::Done => {
159-
return Err(io::Error::new(
160-
io::ErrorKind::Other,
161-
"parser used after done",
162-
));
159+
return Err(io::Error::other("parser used after done"));
163160
}
164161
};
165162
}

0 commit comments

Comments
 (0)