Skip to content

Commit

Permalink
internal: Remove static lifetime in parser (PRQL#4649)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Jun 22, 2024
1 parent edfaa17 commit c822f33
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 c822f33

Please sign in to comment.