mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
io: Drop AsyncBufRead bound on BufStream impl (#2108)
fixes #2064, #2106
This commit is contained in:
committed by
Carl Lerche
parent
7c3f1cb4a3
commit
5b091fa3f0
@@ -131,7 +131,7 @@ impl<RW: AsyncRead + AsyncWrite> AsyncRead for BufStream<RW> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<RW: AsyncBufRead + AsyncRead + AsyncWrite> AsyncBufRead for BufStream<RW> {
|
impl<RW: AsyncRead + AsyncWrite> AsyncBufRead for BufStream<RW> {
|
||||||
fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> {
|
fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> {
|
||||||
self.project().inner.poll_fill_buf(cx)
|
self.project().inner.poll_fill_buf(cx)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user