Skip to content

Commit

Permalink
Apply clippy suggestions from Rust 1.73
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Oct 6, 2023
1 parent a6bc14c commit ab281c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion askama_derive/src/heritage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit ab281c8

Please sign in to comment.