no-identity-operation Disallow arithmetic with an operand that cannot change the result An integral identity operation such as value + 0 returns the other operand unchanged. Instead, you SHOULD remove the operation. - Category: suspicious - Level: warning - Fix: automatic - Scope: module Reported function retain(value: int32): int32 { return value + 0; } Accepted function retain(value: int32): int32 { return value; } Prior art - Clippy ยท identityop language/linter/src/rules/suspicious/noidentityoperation.rs:8