aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
Diffstat (limited to 'askama_derive')
-rw-r--r--askama_derive/src/generator.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index c8e6c4d..3fce6c9 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -983,7 +983,10 @@ impl<'a> Heritage<'a> {
while let Some(ref path) = ctx.extends {
ctx = &contexts[&path];
for (name, def) in &ctx.blocks {
- blocks.entry(name).or_insert_with(|| vec![]).push((ctx, def));
+ blocks
+ .entry(name)
+ .or_insert_with(|| vec![])
+ .push((ctx, def));
}
}