Skip to content

Commit

Permalink
internal: Remove static lifetime in parser
Browse files Browse the repository at this point in the history
This is the odd-one-out and I don't think required.
  • Loading branch information
max-sixty committed Jun 22, 2024
1 parent edfaa17 commit f8e16b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions prqlc/prqlc-parser/src/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,11 @@ where

fn lambda_func<E>(expr: E) -> impl Parser<TokenKind, Expr, Error = PError> + Clone
where
E: Parser<TokenKind, Expr, Error = PError> + Clone + 'static,
E: Parser<TokenKind, Expr, Error = PError> + Clone,
{
let param = ident_part()
.then(type_expr().delimited_by(ctrl('<'), ctrl('>')).or_not())
.then(ctrl(':').ignore_then(expr.clone().map(Box::new)).or_not())
.boxed();
.then(ctrl(':').ignore_then(expr.clone().map(Box::new)).or_not());

let generic_args = ident_part()
.then_ignore(ctrl(':'))
Expand Down

0 comments on commit f8e16b9

Please sign in to comment.