From a451bf29b607f7e47cd1e674a1adf490a2496af2 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 22 Jun 2018 14:05:11 +0200 Subject: Fix formatting with cargo fmt --- askama_derive/src/generator.rs | 2 +- askama_derive/src/lib.rs | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 86fd9f5..e2c77f3 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -911,7 +911,7 @@ impl<'a> Heritage<'a> { Heritage { root: ctx, levels, - blocks + blocks, } } } diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index ad1c123..7c0387f 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -144,10 +144,12 @@ impl<'a> Context<'a> { let blocks: HashMap<_, _> = blocks .iter() - .map(|def| if let Node::BlockDef(_, name, _, _) = def { - (*name, *def) - } else { - unreachable!() + .map(|def| { + if let Node::BlockDef(_, name, _, _) = def { + (*name, *def) + } else { + unreachable!() + } }) .collect(); -- cgit