diff options
Diffstat (limited to 'askama_derive')
-rw-r--r-- | askama_derive/src/heritage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/heritage.rs b/askama_derive/src/heritage.rs index ce85ac7..ddf9b99 100644 --- a/askama_derive/src/heritage.rs +++ b/askama_derive/src/heritage.rs @@ -26,7 +26,7 @@ impl Heritage<'_> { while let Some(ref path) = ctx.extends { ctx = &contexts[path.as_path()]; for (name, def) in &ctx.blocks { - blocks.entry(name).or_insert_with(Vec::new).push((ctx, def)); + blocks.entry(name).or_default().push((ctx, def)); } } |