diff --git a/src/io/read/chain.rs b/src/io/read/chain.rs index 4fcdb0ec..51ee1151 100644 --- a/src/io/read/chain.rs +++ b/src/io/read/chain.rs @@ -144,7 +144,7 @@ impl BufRead for Chain { let this = self.project(); if !*this.done_first { match futures_core::ready!(this.first.poll_fill_buf(cx)) { - Ok(buf) if buf.is_empty() => { + Ok([]) => { *this.done_first = true; } Ok(buf) => return Poll::Ready(Ok(buf)),