diff options
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/lib.rs | 10 |
1 files changed, 6 insertions, 4 deletions
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(); |