From 2447a463c5949d32e1470da44287c7ac0d67510f Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Wed, 18 Feb 2026 03:30:03 +0200 Subject: [PATCH] avoid needless dereference --- tools/grammar/src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -----------------------------------------------