e230f19e18
[`map_identity`]: allow closure with type annotations Fixes #9122 `.map(|a: u32| a)` can help type inference, so we should probably allow this and not warn about "unnecessary map of the identity function" changelog: [`map_identity`]: allow closure with type annotations