no-collapsible-match Merge nested matches whose nested pattern fits the enclosing arm A nested match on a value bound by its enclosing arm repeats the same selection in two places. Instead, you SHOULD place the nested pattern at the binding site when both fallback arms have the same result. - Category: style - Level: warning - Fix: suggestion - Scope: module Reported function describe(result: Result): string { return match (result) { Ok { value } => match (value) { 0 => "zero" _ => "other" } _ => "other" }; } Accepted function describe(result: Result): string { return match (result) { Ok { value: 0 } => "zero" _ => "other" }; } Prior art - Clippy ยท collapsiblematch language/linter/src/rules/style/nocollapsiblematch.rs:8