diff options
Diffstat (limited to 'tokio-codec/src/framed.rs')
-rw-r--r-- | tokio-codec/src/framed.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tokio-codec/src/framed.rs b/tokio-codec/src/framed.rs index 707353db..da131ee1 100644 --- a/tokio-codec/src/framed.rs +++ b/tokio-codec/src/framed.rs @@ -234,10 +234,7 @@ impl<T: AsyncRead + Unpin, U: Unpin> AsyncRead for Fuse<T, U> { } impl<T: AsyncBufRead + Unpin, U: Unpin> AsyncBufRead for Fuse<T, U> { - fn poll_fill_buf<'a>( - self: Pin<&'a mut Self>, - cx: &mut Context<'_>, - ) -> Poll<io::Result<&'a [u8]>> { + fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { pin!(self.get_mut().0).poll_fill_buf(cx) } |