Suggest get_mut() instead of lock() method on Mutex #1765
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
T-middle
Type: Probably requires verifiying types
If you have
mut
reference to aMutex
thenget_mut
method is more efficient thanlock
since it doesn't require locking. If clippy detects such situation it could suggest to useget_mut
instead oflock
.The text was updated successfully, but these errors were encountered: