mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
858d96d63a
Extend `UNNECESSARY_TO_OWNED` to handle `split` Fixes https://github.com/rust-lang/rust-clippy/issues/9965. When you have `to_string().split('a')` or equivalent, it'll suggest to remove the `to_owned`/`to_string` part. r? `@flip1995` changelog: Extend `UNNECESSARY_TO_OWNED` to handle `split`