Skip to content

Commit

Permalink
fix: fix more lints
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromfedricci committed Sep 30, 2024
1 parent b4831b0 commit 4e452e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raw/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,15 +524,15 @@ mod test_leaks_expected {
let node = MutexNode::new();
let guard = data.lock(node);
thread::spawn(move || {
let _r = rx2.recv().unwrap();
rx2.recv().unwrap();
let node = MutexNode::new();
let guard = handle.lock(node);
core::mem::forget(guard);
tx1.send(()).unwrap();
});
drop(guard);
tx2.send(()).unwrap();
let _r = rx1.recv();
rx1.recv().unwrap();
}
}

Expand Down

0 comments on commit 4e452e9

Please sign in to comment.