From a3331efa827de4020c66dafd1b425983591a55f3 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 23 Apr 2020 13:46:48 +0200 Subject: Fix clippy suggestion --- askama_shared/src/heritage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src') 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)); } } -- cgit