mirror of
https://github.com/async-rs/async-std.git
synced 2025-10-20 17:16:35 +00:00
Merge e1006a5be1
into 844b552531
This commit is contained in:
commit
ca9f06b3dd
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();
|
let this = self.project();
|
||||||
if !*this.done_first {
|
if !*this.done_first {
|
||||||
match futures_core::ready!(this.first.poll_fill_buf(cx)) {
|
match futures_core::ready!(this.first.poll_fill_buf(cx)) {
|
||||||
Ok(buf) if buf.is_empty() => {
|
Ok([]) => {
|
||||||
*this.done_first = true;
|
*this.done_first = true;
|
||||||
}
|
}
|
||||||
Ok(buf) => return Poll::Ready(Ok(buf)),
|
Ok(buf) => return Poll::Ready(Ok(buf)),
|
||||||
|
|
Loading…
Reference in a new issue