Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgl-orange committed Feb 11, 2025
1 parent 328c7d4 commit 1bb9e1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async fn distribution_on_two_matching_connect_to(host: &'static str) -> (i32, i3
"/",
get(move || async move {
tx2.send(()).unwrap();
"Success1"
"Success2"
}),
);

Expand Down Expand Up @@ -347,9 +347,9 @@ async fn distribution_on_two_matching_connect_to(host: &'static str) -> (i32, i3
let mut count1 = 0;
let mut count2 = 0;
loop {
if let Ok(_) = rx1.try_recv() {
if rx1.try_recv().is_ok() {
count1 += 1;
} else if let Ok(_) = rx2.try_recv() {
} else if rx2.try_recv().is_ok() {
count2 += 1;
} else {
break;
Expand Down

0 comments on commit 1bb9e1b

Please sign in to comment.