Skip to content

Commit

Permalink
Suppress future let_underscore_lock lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Feb 17, 2024
1 parent bd11149 commit bc09779
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions all-is-cubes-mesh/src/dynamic/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,12 @@ mod state {
let guard = self.counters.lock().unwrap();
match timeout {
Some(timeout) => {
let _ = self.endings.wait_timeout(guard, timeout);
// We don't do anything with the guard we got back because we're just
// receiving a wakeup, not making any transactional change.
let _guard = self.endings.wait_timeout(guard, timeout);
}
None => {
let _ = self.endings.wait(guard);
let _guard = self.endings.wait(guard);
}
}
}
Expand Down

0 comments on commit bc09779

Please sign in to comment.