Skip to content

Commit

Permalink
Improve let_underscore_lock
Browse files Browse the repository at this point in the history
- lint if the lock was in a nested pattern
- lint if the lock is inside a `Result<Lock, _>`
  • Loading branch information
Noratrieb committed Jan 12, 2024
1 parent e9f8713 commit 3b7ba1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/ui/let_underscore_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fn main() {
let _ = p_rw;
}

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

Expand Down

0 comments on commit 3b7ba1d

Please sign in to comment.