2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-12 19:36:45 +00:00
This commit is contained in:
wangcundashang 2025-03-19 18:25:07 +08:00 committed by GitHub
commit d0f2689967
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)),