diff options
author | Nadrieril | 2019-03-06 23:48:55 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-06 23:48:55 +0100 |
commit | 474744de28034e9558b1a3ff4f9e21ec1425d794 (patch) | |
tree | 8316d086b816e62bd185826fc8f58b46ffe17e92 /dhall_core/src | |
parent | e3813e7d4e3450704c1213fd6cdff7c801ccbc34 (diff) |
rustfmt
Diffstat (limited to 'dhall_core/src')
-rw-r--r-- | dhall_core/src/core.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs index cb4d6ca..f2177b1 100644 --- a/dhall_core/src/core.rs +++ b/dhall_core/src/core.rs @@ -278,16 +278,14 @@ impl<'i, S, A> Expr<'i, S, A> { map_shallow(self, map_expr, map_note, map_embed) } - pub fn map_embed<B, F>( - &self, - map_embed: &F, - ) -> Expr<'i, S, B> + pub fn map_embed<B, F>(&self, map_embed: &F) -> Expr<'i, S, B> where A: Clone, S: Clone, F: Fn(&A) -> B, { - let recurse = |e: &Expr<'i, S, A>| -> Expr<'i, S, B> { e.map_embed(map_embed) }; + let recurse = + |e: &Expr<'i, S, A>| -> Expr<'i, S, B> { e.map_embed(map_embed) }; map_shallow(self, recurse, |x| x.clone(), map_embed) } |