diff options
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/heritage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/heritage.rs b/askama_shared/src/heritage.rs index 97580d5..e2aace6 100644 --- a/askama_shared/src/heritage.rs +++ b/askama_shared/src/heritage.rs @@ -25,7 +25,7 @@ impl<'a> Heritage<'a> { for (name, def) in &ctx.blocks { blocks .entry(name) - .or_insert_with(|| vec![]) + .or_insert_with(Vec::new) .push((ctx, def)); } } |