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:
parent
eba6c789dc
commit
6b179e3a67
3 changed files with 7 additions and 9 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue