rust/clippy_lints
Alex Macleod f5ca68f9db
Do not remove identity mapping if mandatory mutability would be lost (#13905)
Removing `.map(identity)` may result in invalid code if the receiver of
`map()` is an immutable binding, and the result of `map()` is used as
the receiver of a method call expecting a mutable reference.

Fix #13904

changelog: [`map_identity`]: do not lint if this would cause mandatory
mutability to be lost
2025-01-07 13:43:46 +00:00
..
src Do not remove identity mapping if mandatory mutability would be lost (#13905) 2025-01-07 13:43:46 +00:00
Cargo.toml Merge commit 'ff4a26d442' into clippy-subtree-update 2024-11-28 19:38:59 +01:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

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