Skip to content

Commit e3fa5f1

Browse files
committed
Fix build
1 parent a8d1836 commit e3fa5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/condvar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn notify_all() {
3131
let mut tasks: Vec<JoinHandle<()>> = Vec::new();
3232
let pair = Arc::new((Mutex::new(0u32), Condvar::new()));
3333

34-
for i in 0..10 {
34+
for _ in 0..10 {
3535
let pair = pair.clone();
3636
tasks.push(task::spawn(async move {
3737
let (m, c) = &*pair;
@@ -57,6 +57,6 @@ fn notify_all() {
5757
t.await;
5858
}
5959
let count = m.lock().await;
60-
assert!(*count == 11);
60+
assert_eq!(11, *count);
6161
})
6262
}

0 commit comments

Comments
 (0)