no-self-assignment Disallow assigning a stable place to itself Assigning a stable storage place to itself leaves its value unchanged and performs a useless write. Instead, you SHOULD remove the assignment or correct the unintended operand. - Category: suspicious - Level: warning - Fix: none - Scope: module Reported function retain(value: int32): int32 { let result = value; result = result; return result; } Accepted function retain(value: int32): int32 { const result = value; return result; } Prior art - Clippy · selfassignment - ESLint · no-self-assign language/linter/src/rules/suspicious/noselfassignment.rs:7