aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-04-23 13:54:09 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-04-23 13:54:09 +0200
commitc7a66e87f236d4bce2a4b442d107ff5250534f8a (patch)
tree73558efc752143c2a025e9f5c692e06d11f809bc /askama_shared
parenta3331efa827de4020c66dafd1b425983591a55f3 (diff)
downloadaskama-c7a66e87f236d4bce2a4b442d107ff5250534f8a.tar.gz
askama-c7a66e87f236d4bce2a4b442d107ff5250534f8a.tar.bz2
askama-c7a66e87f236d4bce2a4b442d107ff5250534f8a.zip
Fix formatting with cargo fmt
Diffstat (limited to 'askama_shared')
-rw-r--r--askama_shared/src/heritage.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/askama_shared/src/heritage.rs b/askama_shared/src/heritage.rs
index e2aace6..554fbfd 100644
--- a/askama_shared/src/heritage.rs
+++ b/askama_shared/src/heritage.rs
@@ -23,10 +23,7 @@ impl<'a> Heritage<'a> {
while let Some(ref path) = ctx.extends {
ctx = &contexts[&path];
for (name, def) in &ctx.blocks {
- blocks
- .entry(name)
- .or_insert_with(Vec::new)
- .push((ctx, def));
+ blocks.entry(name).or_insert_with(Vec::new).push((ctx, def));
}
}