Skip to content

Commit

Permalink
Thx clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Jun 6, 2022
1 parent fcbec82 commit b59da8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures/tests/stream_try_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn try_flatten_unordered() {
block_on(async move {
let mut st = ErrorStream { error_after: 3, polled: 0 }.try_flatten_unordered(None);
let mut ctr = 0;
while let Ok(_) = st.try_next().await {
while (st.try_next().await).is_ok() {
ctr += 1;
}
assert_eq!(ctr, 0);
Expand Down

0 comments on commit b59da8a

Please sign in to comment.