nervosnetwork / ckb

The Nervos CKB is a public permissionless blockchain, and the layer 1 of Nervos network.
https://www.nervos.org
MIT License
1.14k stars 224 forks source link

chore: add clippy::redundant_clone #4495

Closed chenyukang closed 3 weeks ago

chenyukang commented 3 weeks ago

What problem does this PR solve?

Problem Summary:

When I review a performance issue, I found there are some necessary clones. clippy::redundant_clone may remove them from the code.

What is changed and how it works?

add clippy::redundant_clone.

What's Changed:

Related changes

Check List

Tests

Side effects

Release note

None: Exclude this PR from the release note.