mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
e8185ec091
Put another way, merge `string_to_string` into `implicit_clone`, as suggested here: https://github.com/rust-lang/rust-clippy/issues/14173#issuecomment-2645846915 Note: [I wrote](https://github.com/rust-lang/rust-clippy/commit/b8913894a13431bea99400dc9f53a1fd9f41a6c6) this comment: https://github.com/rust-lang/rust-clippy/blob/6cdb7f68c39a2458c6b8f6dc63da4123a6a5af89/clippy_lints/src/methods/implicit_clone.rs#L43-L45 Here is the context for why I wrote it: https://github.com/rust-lang/rust-clippy/pull/7978#discussion_r769128853 Regardless, it's probably time for the comment to go away. Extending `implicit_clone` to handle `to_string` calls yields many hits within Clippy's codebase. changelog: extend `implicit_clone` to handle `to_string` calls