1
Fork 0

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:
Nilstrieb 2024-01-07 20:37:51 +01:00
parent ce1f2ccf5a
commit a04ac4952c
7 changed files with 156 additions and 44 deletions

View file

@ -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