Skip to content

Commit c822f33

Browse files
authored
internal: Remove static lifetime in parser (PRQL#4649)
1 parent edfaa17 commit c822f33

File tree

1 file changed

+2
-3
lines changed
  • prqlc/prqlc-parser/src/parser

1 file changed

+2
-3
lines changed

prqlc/prqlc-parser/src/parser/expr.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,11 @@ where
352352

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

362361
let generic_args = ident_part()
363362
.then_ignore(ctrl(':'))

0 commit comments

Comments
 (0)