Improve let_underscore_lock
- lint if the lock was in a nested pattern - lint if the lock is inside a `Result<Lock, _>`
This commit is contained in:
parent
ce1f2ccf5a
commit
a04ac4952c
7 changed files with 156 additions and 44 deletions
|
@ -345,6 +345,9 @@ lint_multiple_supertrait_upcastable = `{$ident}` is object-safe and has multiple
|
|||
lint_node_source = `forbid` level set here
|
||||
.note = {$reason}
|
||||
|
||||
lint_non_binding_let_multi_drop_fn =
|
||||
consider immediately dropping the value using `drop(..)` after the `let` statement
|
||||
|
||||
lint_non_binding_let_multi_suggestion =
|
||||
consider immediately dropping the value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue