diff options
Diffstat (limited to 'askama_derive/src')
-rw-r--r-- | askama_derive/src/generator.rs | 2 | ||||
-rw-r--r-- | 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(); |