Skip to content

Commit 9c3b915

Browse files
authored
Fix clippy error in tokio/write/generic/decoder.rs
Signed-off-by: Jiahao XU <[email protected]>
1 parent 6149d57 commit 9c3b915

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
@@ -178,8 +178,7 @@ impl<W: AsyncWrite, D: Decode> AsyncWrite for Decoder<W, D> {
178178
ready!(self.as_mut().project().writer.as_mut().poll_shutdown(cx))?;
179179
Poll::Ready(Ok(()))
180180
} else {
181-
Poll::Ready(Err(io::Error::new(
182-
io::ErrorKind::Other,
181+
Poll::Ready(Err(io::Error::other
183182
"Attempt to shutdown before finishing input",
184183
)))
185184
}

0 commit comments

Comments
 (0)