Diffstat (limited to 'src/parser/fun.rs')
| -rw-r--r-- | src/parser/fun.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/fun.rs b/src/parser/fun.rs index f81e475..facec08 100644 --- a/src/parser/fun.rs +++ b/src/parser/fun.rs @@ -64,7 +64,7 @@ impl<'s> Λ<'s> { exp.repeated() .collect() .delimited_by(t!['('], t![')']) - .map_with(|x, e| Spanned::from((Self(x), e.span()))) + .map_with(|x, e| Spanned::from((Self::of(x), e.span()))) .labelled("lambda") } } @@ -115,7 +115,7 @@ impl<'s> Function<'s> { let fn_param = choice(( basic - .map_with(|x, e| Λ(vec![Expr::Function(x).spun(e.span())])) + .map_with(|x, e| Λ::of(vec![Expr::Function(x).spun(e.span())])) .labelled("function"), λ.clone(), )) |