From ab281c82365a3cbf4f564e9245b008dbe04e59a7 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 6 Oct 2023 11:28:22 +0200 Subject: Apply clippy suggestions from Rust 1.73 --- askama_derive/src/heritage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src') 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)); } } -- cgit