From d4671611597837dec3108f3a7f3af46be1bc4c36 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 7 Sep 2018 20:09:47 +0200 Subject: Fix formatting with cargo fmt --- askama_derive/src/generator.rs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'askama_derive/src') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 07a90e5..5a136fb 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -435,18 +435,21 @@ impl<'a> Generator<'a> { .contexts .get(path) .unwrap_or_else(|| panic!("context for '{:?}' not found", path)); - (mctx.macros - .get(name) - .unwrap_or_else(|| panic!("macro '{}' not found in scope '{}'", s, name)), - mctx) + ( + mctx.macros + .get(name) + .unwrap_or_else(|| panic!("macro '{}' not found in scope '{}'", s, name)), + mctx, + ) } else { - (ctx.macros - .get(name) - .unwrap_or_else(|| panic!("macro '{}' not found", name)), - ctx) + ( + ctx.macros + .get(name) + .unwrap_or_else(|| panic!("macro '{}' not found", name)), + ctx, + ) }; - self.flush_ws(buf, ws); // Cannot handle_ws() here: whitespace from macro definition comes first self.locals.push(); buf.writeln("{"); -- cgit