diff options
| author | 2021-02-15 10:03:06 +0100 | |
|---|---|---|
| committer | 2021-02-15 11:10:48 +0100 | |
| commit | f5f35dad5626ad20d20f8497227428057bc0d841 (patch) | |
| tree | 0bdca4fe24f19b791e338221dd3f6426667cdb27 /askama_shared | |
| parent | ae3a5dda2b22e50fb639b63278fa2883e8367456 (diff) | |
| download | askama-f5f35dad5626ad20d20f8497227428057bc0d841.tar.gz askama-f5f35dad5626ad20d20f8497227428057bc0d841.tar.bz2 askama-f5f35dad5626ad20d20f8497227428057bc0d841.zip  | |
Fix formatting for rust 1.50.0
Diffstat (limited to '')
| -rw-r--r-- | askama_shared/src/generator.rs | 10 | 
1 files changed, 6 insertions, 4 deletions
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("{")?;  | 
