Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Oct 10, 2023
1 parent 2526011 commit fbd17d8
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 @@ -25,7 +25,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 fbd17d8

Please sign in to comment.