ic
ic copied to clipboard
perf: avoid redundant clones
This PR adds the clippy lint redundant_clone to rust-lint.sh which flags unnecessary clones in the entire codebase.
It would be great to also add needless_pass_by_value which flags functions that take ownership of their arguments when borrowing is enough, but this would require way more changes (including manual and external-facing).