mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
457e7f12e9
3355: Lint to remove redundant `clone()`s r=oli-obk a=sinkuu This PR adds lint `redundant_clone`. It suggests to remove redundant `clone()` that clones a owned value that will be dropped without any usage after that. Real-world example: https://github.com/rust-lang/rust/compare/7b0735a..sinkuu:redundant_clone2 Co-authored-by: Shotaro Yamada <sinkuu@sinkuu.xyz> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |