From 6131fd407e1092afe04cf94e3eaea263f84e0211 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 17 Mar 2020 22:14:00 +0000 Subject: Circumvent weird rustfmt inconsistency --- dhall/build.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dhall') diff --git a/dhall/build.rs b/dhall/build.rs index ce677e3..366f8a4 100644 --- a/dhall/build.rs +++ b/dhall/build.rs @@ -411,7 +411,9 @@ fn convert_abnf_to_pest() -> std::io::Result<()> { // Setup grammar for precedence climbing rules.remove("operator_expression"); - writeln!(&mut file, r##" + writeln!( + &mut file, + r##" import_alt = {{ "?" ~ whsp1 }} bool_or = {{ "||" }} natural_plus = {{ "+" ~ whsp1 }} @@ -438,7 +440,8 @@ fn convert_abnf_to_pest() -> std::io::Result<()> { import_alt }} operator_expression = {{ with_expression ~ (whsp ~ operator ~ whsp ~ with_expression)* }} - "##)?; + "## + )?; writeln!( &mut file, -- cgit v1.2.3