clippy::let_underscore_lock
false-positive when binding mutex without locking
#8486
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
let_underscore_lock
should only fire if the.lock()
method is being invoked (and/or the type being bound is a lock guard)Lint Name
let_underscore_lock
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
Nothing
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: