rust/clippy_lints
bors d5d8ef13d7 Auto merge of #10159 - khuey:iter_kv_map_ref_mut, r=llogiq
Make the iter_kv_map lint handle ref/mut annotations.

For the degenerate (`map(|(k, _)| k)`/`map(|(_, v)| v)`) cases a mut annotation is superfluous and a ref annotation won't compile, so no additional handling is required. For cases where the `map` call must be preserved ref/mut annotations should also be presereved so that the map body continues to work as expected.

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: [`iter_kv_map`]: handle ref/mut annotations
2023-01-04 23:13:39 +00:00
..
src Auto merge of #10159 - khuey:iter_kv_map_ref_mut, r=llogiq 2023-01-04 23:13:39 +00:00
Cargo.toml Bump Clippy version -> 0.1.68 2022-12-17 13:57:41 +01:00
README.md

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