summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dhall/build.rs4
-rw-r--r--dhall_core/src/parser.rs6
2 files changed, 7 insertions, 3 deletions
diff --git a/dhall/build.rs b/dhall/build.rs
index e80115f..c3b0fcb 100644
--- a/dhall/build.rs
+++ b/dhall/build.rs
@@ -23,7 +23,9 @@ fn dhall_files_in_dir<'a>(dir: &'a Path) -> impl Iterator<Item = String> + 'a {
fn main() -> std::io::Result<()> {
println!("cargo:rerun-if-changed=../dhall-lang/.git");
- println!("cargo:rerun-if-changed=../.git/modules/dhall-lang/refs/heads/master");
+ println!(
+ "cargo:rerun-if-changed=../.git/modules/dhall-lang/refs/heads/master"
+ );
let out_dir = env::var("OUT_DIR").unwrap();
let tests_dir = Path::new("../dhall-lang/tests/");
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)] => {