summaryrefslogtreecommitdiff
path: root/dhall_core
diff options
context:
space:
mode:
authorNadrieril2019-04-06 01:01:28 +0200
committerNadrieril2019-04-06 01:01:28 +0200
commit5b0e81c215fa6323635ca1bf49a86aeef0ba80f8 (patch)
treef6fda3a9aa78c41c9fff02bf352d7b76cad9bb05 /dhall_core
parent5eccde86fc3ccdeb34c9f8bb44de33d25e77f30c (diff)
rustfmt
Diffstat (limited to 'dhall_core')
-rw-r--r--dhall_core/src/parser.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs
index e18a709..67bcf77 100644
--- a/dhall_core/src/parser.rs
+++ b/dhall_core/src/parser.rs
@@ -564,7 +564,8 @@ make_parser! {
token_rule!(in_<()>);
rule!(expression<ParsedExpr> as expression; children!(
- [lambda(()), nonreserved_label(l), expression(typ), arrow(()), expression(body)] => {
+ [lambda(()), nonreserved_label(l), expression(typ),
+ arrow(()), expression(body)] => {
Lam(l, rc(typ), rc(body))
},
[if_(()), expression(cond), expression(left), expression(right)] => {
@@ -576,7 +577,8 @@ make_parser! {
|acc, x| Let(x.0, x.1, x.2, rc(acc))
)
},
- [forall(()), nonreserved_label(l), expression(typ), arrow(()), expression(body)] => {
+ [forall(()), nonreserved_label(l), expression(typ),
+ arrow(()), expression(body)] => {
Pi(l, rc(typ), rc(body))
},
[expression(typ), arrow(()), expression(body)] => {