prefer-equality-over-pattern Prefer equality over matching one complete scalar constant A two-arm match that maps one scalar constant and a wildcard to opposite booleans only performs an equality test. Instead, you SHOULD compare the scrutinee with the constant directly. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function isZero(value: int32): boolean { return match (value) { 0 => true _ => false }; } Accepted function isZero(value: int32): boolean { return value === 0; } language/linter/src/rules/style/preferequalityoverpattern.rs:8