double-comparisons Prefer one comparison over an equivalent pair of comparisons Two comparisons that repeat identical operand computations can encode the same relation as one comparison. Instead, you SHOULD use the equivalent single operator. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function atMost(left: int32, right: int32): boolean { return left < right || left === right; } Accepted function atMost(left: int32, right: int32): boolean { return left <= right; } Prior art - Clippy ยท doublecomparisons language/linter/src/rules/style/doublecomparisons.rs:8