summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2019-08-06 21:29:44 +0200
committerNadrieril2019-08-06 21:42:17 +0200
commit749834cb5e166665476f2fbc83fdfec794d90cec (patch)
treeb07800aeb12d399474334de12f28577d9b1d968a
parent3e157f0a05b0b93753ed377332597a37fa379541 (diff)
rustfmt
-rw-r--r--dhall/src/phase/normalize.rs3
-rw-r--r--dhall_generated_parser/build.rs5
2 files changed, 3 insertions, 5 deletions
diff --git a/dhall/src/phase/normalize.rs b/dhall/src/phase/normalize.rs
index d5bdc9e..4bc0f04 100644
--- a/dhall/src/phase/normalize.rs
+++ b/dhall/src/phase/normalize.rs
@@ -75,7 +75,8 @@ pub fn apply_builtin(b: Builtin, args: Vec<Thunk>) -> Value {
// Empty string literal.
[] => {
// Printing InterpolatedText takes care of all the escaping
- let txt: InterpolatedText<X> = std::iter::empty().collect();
+ let txt: InterpolatedText<X> =
+ std::iter::empty().collect();
let s = txt.to_string();
Ok((
r,
diff --git a/dhall_generated_parser/build.rs b/dhall_generated_parser/build.rs
index 2c1a8f5..5275097 100644
--- a/dhall_generated_parser/build.rs
+++ b/dhall_generated_parser/build.rs
@@ -55,10 +55,7 @@ fn main() -> std::io::Result<()> {
}}"
)?;
// TODO: this is a cheat; properly support RFC3986 URLs instead
- writeln!(
- &mut file,
- "url_path = _{{ path }}"
- )?;
+ writeln!(&mut file, "url_path = _{{ path }}")?;
writeln!(
&mut file,
"nonreserved_label = _{{