Skip to content

Commit

Permalink
Silence incorrect lint
Browse files Browse the repository at this point in the history
Clippy's advice is incorrect here, we need a Mutex for the Condvar to be
able to use Condvar::wait.

See also:

 * rust-lang/rust-clippy#1516
 * rust-lang/rust-clippy#4295 (comment)
  • Loading branch information
ruuda committed May 19, 2023
1 parent 4f29fef commit ba70f45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#![allow(clippy::nonminimal_bool)]
#![allow(clippy::redundant_field_names)]

// Harmful lint, see https://github.com/rust-lang/rust-clippy/issues/4295#issuecomment-1554996707.
#![allow(clippy::mutex_atomic)]

extern crate alsa;
extern crate claxon;
extern crate crossbeam;
Expand Down

0 comments on commit ba70f45

Please sign in to comment.