diff --git a/tools/grammar/src/parser.rs b/tools/grammar/src/parser.rs index f65cb80f97..03eaeac452 100644 --- a/tools/grammar/src/parser.rs +++ b/tools/grammar/src/parser.rs @@ -614,11 +614,11 @@ mod tests { let rule = grammar.productions.get("A").unwrap(); let ExpressionKind::RepeatRange { min, max, limit, .. - } = &rule.expression.kind + } = rule.expression.kind else { panic!("expected RepeatRange, got {:?}", rule.expression.kind); }; - (*min, *max, *limit) + (min, max, limit) } // -- Valid ranges -----------------------------------------------