This commit is contained in:
Anton-4 2024-04-15 19:36:52 +02:00
parent a7b843743d
commit dc96e194bd
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
3 changed files with 7 additions and 4 deletions

View file

@ -250,9 +250,12 @@ fn crash_kw<'a>() -> impl Parser<'a, Expr<'a>, EExpr<'a>> {
}
}
// avoids ownership issues
#[allow(clippy::blocks_in_conditions)]
fn loc_possibly_negative_or_negated_term<'a>(
options: ExprParseOptions,
) -> impl Parser<'a, Loc<Expr<'a>>, EExpr<'a>> {
one_of![
|arena, state: State<'a>, min_indent: u32| {
let initial = state.clone();