mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
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
e9f87132a1
commit
3b7ba1d10a
1 changed files with 1 additions and 0 deletions
|
@ -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`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue