Skip to content

Commit 3b7ba1d

Browse files
committed
Improve let_underscore_lock
- lint if the lock was in a nested pattern - lint if the lock is inside a `Result<Lock, _>`
1 parent e9f8713 commit 3b7ba1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/let_underscore_lock.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fn main() {
2626
let _ = p_rw;
2727
}
2828

29+
#[allow(let_underscore_lock)]
2930
fn uplifted() {
3031
// shouldn't lint std locks as they were uplifted as rustc's `let_underscore_lock`
3132

0 commit comments

Comments
 (0)