needless-borrow-of-copy Prefer passing small Copy scalars by value A readonly borrow of a machine scalar adds indirection to a value that Copy can pass directly. Instead, you SHOULD pass the scalar by value and rely on its intrinsic Copy behavior. - Category: performance - Level: warning - Fix: suggestion - Scope: module Reported function increment(value: &readonly int32): int32 { return value + 1; } Accepted function increment(value: int32): int32 { return value + 1; } Prior art - Clippy ยท triviallycopypassbyref language/linter/src/rules/performance/needlessborrowofcopy.rs:8