io: Drop AsyncBufRead bound on BufStream impl (#2108)

fixes #2064, #2106
This commit is contained in:
John-John Tedro
2020-01-13 11:33:24 -08:00
committed by Carl Lerche
parent 7c3f1cb4a3
commit 5b091fa3f0
+1 -1
View File
@@ -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]>> {
self.project().inner.poll_fill_buf(cx)
}