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 |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||