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 9847992 commit d8beb28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion futures-util/src/stream/stream/chain.rs
Original file line number Diff line number Diff line change
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 d8beb28

Please sign in to comment.