Skip to content

Comments

refactor: remove redundant clone calls#3258

Merged
rakita merged 1 commit intobluealloy:mainfrom
doocho:fix/remove-redundant-clones
Dec 26, 2025
Merged

refactor: remove redundant clone calls#3258
rakita merged 1 commit intobluealloy:mainfrom
doocho:fix/remove-redundant-clones

Conversation

@doocho
Copy link
Contributor

@doocho doocho commented Dec 26, 2025

  • Remove unnecessary .clone() calls where variables are not used after the clone
  • Allows direct ownership transfer instead of copying, improving performance

Remove unnecessary `.clone()` calls where variables are not used after
the clone, allowing direct ownership transfer instead of copying.

Files modified:
- examples/contract_deployment/src/main.rs
- bins/revme/src/cmd/bench/burntpix.rs
- bins/revme/src/cmd/bench/snailtracer.rs
- bins/revme/src/cmd/blockchaintest.rs
- bins/revme/src/cmd/statetest/runner.rs
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 26, 2025

CodSpeed Performance Report

Merging #3258 will not alter performance

Comparing doocho:fix/remove-redundant-clones (afde9d2) with main (3b17ee6)

Summary

✅ 173 untouched

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rakita rakita merged commit fa5762c into bluealloy:main Dec 26, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants