Skip to content

Commit

Permalink
Set to None only if necessary (#2683)
Browse files Browse the repository at this point in the history
  • Loading branch information
EFanZh authored and taiki-e committed Jan 30, 2023
1 parent 2e8178c commit 417435e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion futures-util/src/stream/stream/chain.rs
Expand Up @@ -50,8 +50,9 @@ where
if let Some(item) = ready!(first.poll_next(cx)) {
return Poll::Ready(Some(item));
}

this.first.set(None);
}
this.first.set(None);
this.second.poll_next(cx)
}

Expand Down

0 comments on commit 417435e

Please sign in to comment.