mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-12 11:26:44 +00:00
Merge e1006a5be1
into 96f564672a
This commit is contained in:
commit
d0f2689967
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ impl<T: BufRead, U: BufRead> BufRead for Chain<T, U> {
|
|||
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)),
|
||||
|
|
Loading…
Reference in a new issue