Fixes https://github.com/rust-lang/rust-clippy/issues/14175. There are two "big" cases to handle: `.map(|x| x.to_string())` and `.map(String::to_string)`. If the closure has more than one expression, we should not suggest `.cloned()`. changelog: Improve `string_to_string` lint in case it is in a map call r? @samueltardieu |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||