Skip to content

Commit 9f3201a

Browse files
committed
Make clippy happy
1 parent 43524b1 commit 9f3201a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/future.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,9 @@ mod tests {
620620
#[test]
621621
fn test_unwrap_or_else() {
622622
executor::block_on(async {
623-
let future = ready(Err::<(), &str>("Boom!"));
624-
let new_future = unwrap_or_else(future, |_| ());
625-
assert_eq!(new_future.await, ());
623+
let future = ready(Err::<i32, &str>("Boom!"));
624+
let new_future = unwrap_or_else(future, |_| 42);
625+
assert_eq!(new_future.await, 42);
626626
});
627627
}
628628

0 commit comments

Comments
 (0)