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:
@@ -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`"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user