Allow let_underscore_drop
and let_underscore_must_use
by default.
These lints are very noisy and are allow-by-default in clippy anyways. Hence, setting them to allow-by-default here makes more sense than warning constantly on these cases.
This commit is contained in:
parent
36b6309c65
commit
ae2ac3b4c5
5 changed files with 9 additions and 7 deletions
|
@ -41,7 +41,7 @@ declare_lint! {
|
|||
/// calling `std::mem::drop` on the expression is clearer and helps convey
|
||||
/// intent.
|
||||
pub LET_UNDERSCORE_DROP,
|
||||
Warn,
|
||||
Allow,
|
||||
"non-binding let on a type that implements `Drop`"
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ declare_lint! {
|
|||
/// expression to immediately drop. Usually, it's better to explicitly handle
|
||||
/// the `must_use` expression.
|
||||
pub LET_UNDERSCORE_MUST_USE,
|
||||
Warn,
|
||||
Allow,
|
||||
"non-binding let on a expression marked `must_use`"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue