mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
d487579efd
[`map_identity`]: respect match ergonomics Fixes #11764 Note: the original tests before this were slightly wrong themselves already and had to be changed. They were calling `map` on an iterator of `&(i32, i32)`s, so this PR would stop linting there, but they were meant to test something else unrelated to binding modes, so I just changed them to remove the references so that it iterates over owned values and they all bind by value. This way they continue to test what they checked for before: the identity function for tuple patterns. changelog: [`map_identity`]: respect match ergonomics |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |