1
Fork 0

Set let_underscore_lock to Deny by default.

Clippy sets this lint to Deny by default, and it having the lint be Deny
is useful for when we test the lint against a Crater run.
This commit is contained in:
Aaron Kofsky 2022-06-04 13:50:12 -04:00
parent eba6c789dc
commit 6b179e3a67
3 changed files with 7 additions and 9 deletions

View file

@ -55,7 +55,7 @@ declare_lint! {
/// of at end of scope, which is typically incorrect.
///
/// ### Example
/// ```rust
/// ```compile_fail
/// use std::sync::{Arc, Mutex};
/// use std::thread;
/// let data = Arc::new(Mutex::new(0));
@ -83,7 +83,7 @@ declare_lint! {
/// calling `std::mem::drop` on the expression is clearer and helps convey
/// intent.
pub LET_UNDERSCORE_LOCK,
Warn,
Deny,
"non-binding let on a synchronization lock"
}