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 e9f87132a1
commit 3b7ba1d10a

View file

@ -26,6 +26,7 @@ fn main() {
let _ = p_rw; let _ = p_rw;
} }
#[allow(let_underscore_lock)]
fn uplifted() { fn uplifted() {
// shouldn't lint std locks as they were uplifted as rustc's `let_underscore_lock` // shouldn't lint std locks as they were uplifted as rustc's `let_underscore_lock`