Skip to content

Commit 2d4c867

Browse files
committed
pass clippy
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 35d40d1 commit 2d4c867

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/future/future/try_select.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ where
5353
// future also resolved to err. Continue if not.
5454
let mut right = this.right;
5555
if Future::poll(Pin::new(&mut right), cx).is_ready() {
56-
if right.as_ref().output().unwrap().is_ok() || left_errored {
56+
if right.as_ref().output().unwrap().is_ok() {
57+
return Poll::Ready(right.take().unwrap());
58+
} else if left_errored {
5759
return Poll::Ready(right.take().unwrap());
5860
}
5961
}

0 commit comments

Comments
 (0)