Skip to content

perf: avoid redundant clones#10035

Draft
pierugo-dfinity wants to merge 2 commits intomasterfrom
pierugo/clippy-avoid-redundant-clones
Draft

perf: avoid redundant clones#10035
pierugo-dfinity wants to merge 2 commits intomasterfrom
pierugo/clippy-avoid-redundant-clones

Conversation

@pierugo-dfinity
Copy link
Copy Markdown
Contributor

@pierugo-dfinity pierugo-dfinity commented Apr 27, 2026

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 pierugo-dfinity added the CI_ALL_BAZEL_TARGETS Runs all bazel targets label Apr 27, 2026
@github-actions github-actions Bot added the perf label Apr 27, 2026
@pierugo-dfinity pierugo-dfinity changed the title perf: avoid redundant clones and taking ownership perf: avoid redundant clones Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI_ALL_BAZEL_TARGETS Runs all bazel targets perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant