no-duplicate-match-arms Disallow match arms with identical bodies Identical match arm bodies often indicate an editing mistake and repeat one result. Instead, you SHOULD correct an unintended body or combine the patterns when their guards match. - Category: suspicious - Level: warning - Fix: none - Scope: module Reported function describe(value: int32): string { return match (value) { 0 => "small" 1 => "small" _ => "large" }; } Accepted function describe(value: int32): string { return match (value) { 0 | 1 => "small" _ => "large" }; } Prior art - Clippy ยท matchsamearms language/linter/src/rules/suspicious/noduplicatematcharms.rs:6