Skip to content

Commit d8beb28

Browse files
EFanZhtaiki-e
authored andcommitted
Set to None only if necessary (#2683)
1 parent 9847992 commit d8beb28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

futures-util/src/stream/stream/chain.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ where
5050
if let Some(item) = ready!(first.poll_next(cx)) {
5151
return Poll::Ready(Some(item));
5252
}
53+
54+
this.first.set(None);
5355
}
54-
this.first.set(None);
5556
this.second.poll_next(cx)
5657
}
5758

0 commit comments

Comments
 (0)