no-redundant-match-guard Prefer literal patterns over equivalent equality guards An equality guard on a newly bound match value repeats a test that the pattern can perform directly. Instead, you SHOULD match the compared literal in the arm pattern. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function classify(value: int32): string { return match (value) { matched if (matched === 0) => "zero" _ => "other" }; } Accepted function classify(value: int32): string { return match (value) { 0 => "zero" _ => "other" }; } Prior art - Clippy ยท redundantguards language/linter/src/rules/style/noredundantmatchguard.rs:8