Skip to content

Commit dc239cb

Browse files
authored
Fix clippy error in tokio generic decoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent 12059f9 commit dc239cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tokio/write/generic/decoder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ impl<W: AsyncWrite, D: Decode> Decoder<W, D> {
8888
}
8989

9090
State::Done => {
91-
return Poll::Ready(Err(io::Error::new(
92-
io::ErrorKind::Other,
91+
return Poll::Ready(Err(io::Error::other(
9392
"Write after end of stream",
9493
)))
9594
}

0 commit comments

Comments
 (0)