Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit a1df224

Browse files
committed
fix: make clippy happy
Signed-off-by: Chojan Shang <[email protected]>
1 parent 9ca0d11 commit a1df224

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/tests.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,14 @@ fn test_pause() {
7676
let (tx, rx) = mpsc::channel();
7777
thread::spawn(move || {
7878
// pause
79-
tx.send(f()).unwrap();
79+
f();
80+
tx.send(()).unwrap();
8081
// woken up by new order pause, and then pause again.
81-
tx.send(f()).unwrap();
82+
f();
83+
tx.send(()).unwrap();
8284
// woken up by remove, and then quit immediately.
83-
tx.send(f()).unwrap();
85+
f();
86+
tx.send(()).unwrap();
8487
});
8588

8689
assert!(rx.recv_timeout(Duration::from_millis(500)).is_err());

0 commit comments

Comments
 (0)