ic icon indicating copy to clipboard operation
ic copied to clipboard

perf: avoid redundant clones

Open pierugo-dfinity opened this issue 7 months ago • 0 comments

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).

pierugo-dfinity avatar Apr 27 '26 15:04 pierugo-dfinity