From c93aae856712497514d4f80093c17786127eee7c Mon Sep 17 00:00:00 2001 From: Tartasprint Date: Fri, 18 Oct 2024 03:24:34 +0200 Subject: [PATCH] Forgot formatting --- meta/src/validator.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/src/validator.rs b/meta/src/validator.rs index 937fa2de..8ac93585 100644 --- a/meta/src/validator.rs +++ b/meta/src/validator.rs @@ -667,7 +667,13 @@ fn left_recursion<'a, 'i: 'a>(rules: HashMap>) -> Vec None } ParserExpr::Seq(ref lhs, ref rhs) => { - if is_non_failing(&lhs.expr, rules, &mut vec![trace.last().unwrap().clone()]) || is_non_progressing(&lhs.expr, rules, &mut vec![trace.last().unwrap().clone()]){ + if is_non_failing(&lhs.expr, rules, &mut vec![trace.last().unwrap().clone()]) + || is_non_progressing( + &lhs.expr, + rules, + &mut vec![trace.last().unwrap().clone()], + ) + { check_expr(rhs, rules, trace) } else { check_expr(lhs, rules, trace)