starknet-rs icon indicating copy to clipboard operation
starknet-rs copied to clipboard

Add warn on `clippy::needless_pass_by_value`

Open tcoratger opened this issue 8 months ago • 1 comments

As a followup of https://github.com/xJonathanLEI/starknet-rs/pull/598 we should add a warn on this clippy lint

https://rust-lang.github.io/rust-clippy/master/#/needless_pass_by_value?groups=nursery,pedantic

Taking arguments by reference is more flexible and can sometimes avoid unnecessary allocations.

tcoratger avatar Jun 17 '24 17:06 tcoratger