aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-10-06 11:28:22 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-10-06 11:47:35 +0200
commitab281c82365a3cbf4f564e9245b008dbe04e59a7 (patch)
tree6ef859c553e9125ca745210525bcc8e19ee1ee9e
parenta6bc14c8ca5a4e5c6ac297a7fa95f86c722b799c (diff)
downloadaskama-ab281c82365a3cbf4f564e9245b008dbe04e59a7.tar.gz
askama-ab281c82365a3cbf4f564e9245b008dbe04e59a7.tar.bz2
askama-ab281c82365a3cbf4f564e9245b008dbe04e59a7.zip
Apply clippy suggestions from Rust 1.73
-rw-r--r--askama_derive/src/heritage.rs2
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));
}
}