aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-04-23 13:46:48 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-04-23 13:46:48 +0200
commita3331efa827de4020c66dafd1b425983591a55f3 (patch)
treec7a9bf5f84457aaaa2b0945548cb5b3f1fed9ff5 /askama_shared/src
parentf959d836908aa2d6a8c9a29b0236593ea85d9734 (diff)
downloadaskama-a3331efa827de4020c66dafd1b425983591a55f3.tar.gz
askama-a3331efa827de4020c66dafd1b425983591a55f3.tar.bz2
askama-a3331efa827de4020c66dafd1b425983591a55f3.zip
Fix clippy suggestion
Diffstat (limited to 'askama_shared/src')
-rw-r--r--askama_shared/src/heritage.rs2
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));
}
}