aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-10 14:37:11 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-07-10 14:37:11 +0100
commit689fc603d5f714d0e1ef8d07a625be14936e4149 (patch)
treef2126940420ba1046061cb84c8ec6cd7f867e00c
parentb5b1589093b96efdb8a80d6045dcfb4950d2632c (diff)
downloadaskama-689fc603d5f714d0e1ef8d07a625be14936e4149.tar.gz
askama-689fc603d5f714d0e1ef8d07a625be14936e4149.tar.bz2
askama-689fc603d5f714d0e1ef8d07a625be14936e4149.zip
Fix formatting with cargo fmt
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index c8e6c4d..3fce6c9 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -983,7 +983,10 @@ 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![]).push((ctx, def));
+ blocks
+ .entry(name)
+ .or_insert_with(|| vec![])
+ .push((ctx, def));
}
}