From f5f35dad5626ad20d20f8497227428057bc0d841 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 15 Feb 2021 10:03:06 +0100 Subject: Fix formatting for rust 1.50.0 --- askama_shared/src/generator.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 32968de..9907c0b 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -1283,11 +1283,13 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { buf.write("&("); } - let scoped = matches!(arg, + let scoped = matches!( + arg, Expr::Filter(_, _) - | Expr::MethodCall(_, _, _) - | Expr::VarCall(_, _) - | Expr::PathCall(_, _)); + | Expr::MethodCall(_, _, _) + | Expr::VarCall(_, _) + | Expr::PathCall(_, _) + ); if scoped { buf.writeln("{")?; -- cgit