We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d40d1 commit 2d4c867Copy full SHA for 2d4c867
src/future/future/try_select.rs
@@ -53,7 +53,9 @@ where
53
// future also resolved to err. Continue if not.
54
let mut right = this.right;
55
if Future::poll(Pin::new(&mut right), cx).is_ready() {
56
- if right.as_ref().output().unwrap().is_ok() || left_errored {
+ if right.as_ref().output().unwrap().is_ok() {
57
+ return Poll::Ready(right.take().unwrap());
58
+ } else if left_errored {
59
return Poll::Ready(right.take().unwrap());
60
}
61
0 commit comments