rust/clippy_lints
Rob Shearman c88cb08afc Fix mut_mutex_lock when reference not ultimately mutable
When there is are multiple references where one of the references
isn't mutable then this results in a false-positive for
`mut_mutex_lock` as it only checks the mutability of the first
reference level.

Fix this by using `peel_mid_ty_refs_is_mutable` which correctly
determines whether the reference is ultimately mutable and thus
whether `Mutex::get_lock()` can actually be used.

Fixes #9854
2024-10-01 22:19:42 +02:00
..
src Fix mut_mutex_lock when reference not ultimately mutable 2024-10-01 22:19:42 +02:00
Cargo.toml Bump Clippy version -> 0.1.83 2024-09-05 17:00:55 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.