rust/clippy_utils
bors da0538eaca Auto merge of #7330 - xFrednet:0000-refactor-map-identity, r=flip1995
Refactoring identity function lints

I've noticed that we have several lints that all check for identity functions and each used their own check implementation. I moved the `is_expr_identity_function` function to `clippy_utils` and adapted all lints to reuse that one function. This should make the addition of new lints like this also easier in the future.

I've also moved the `map_identity` lint into the `methods` module. It's probably the best to review this PR by checking each commit individually. And that's it, have a great day 🙃

changelog: none
2021-06-09 08:27:05 +00:00
..
src Auto merge of #7330 - xFrednet:0000-refactor-map-identity, r=flip1995 2021-06-09 08:27:05 +00:00
Cargo.toml Deny warning in every main sub-crate 2021-05-18 11:05:48 +02:00