Skip to content

Commit

Permalink
Remove level nesting in is_defined parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 24, 2024
1 parent b974f67 commit bedfe55
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rinja_parser/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ impl<'a> Expr<'a> {
expr_prec_layer!(muldivmod, is_defined, alt((tag("*"), tag("/"), tag("%"))));

fn is_defined(i: &'a str, level: Level) -> ParseResult<'a, WithSpan<'a, Self>> {
let (_, level) = level.nest(i)?;
let start = i;
let (i, lhs) = Self::filtered(i, level)?;
let (i, rhs) = opt(preceded(
Expand Down

0 comments on commit bedfe55

Please sign in to comment.