clone-on-copy Disallow cloning values whose checked type is Copy Calling clone on a Copy value implies that duplication may require explicit work. Instead, you SHOULD use the value directly and let Copy semantics duplicate it implicitly. - Category: performance - Level: warning - Fix: automatic - Scope: module Reported function duplicate(value: int32): int32 { return value.clone(); } Accepted function duplicate(value: int32): int32 { return value; } Prior art - Clippy ยท cloneoncopy language/linter/src/rules/performance/cloneoncopy.rs:8