diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-15 15:02:02 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-15 15:02:02 +0200 |
commit | aa18a4c1598b1cf530e37fa73bceb06dad43afdc (patch) | |
tree | 062304686ce669fde095709f034db7ac2302543b /askama_shared/src | |
parent | a32532d5ae339cf3dcde1bd0b684e7bd7f8c51fc (diff) | |
download | askama-aa18a4c1598b1cf530e37fa73bceb06dad43afdc.tar.gz askama-aa18a4c1598b1cf530e37fa73bceb06dad43afdc.tar.bz2 askama-aa18a4c1598b1cf530e37fa73bceb06dad43afdc.zip |
Wrap some overly long lines
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/generator.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 544d336..13c5072 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -351,7 +351,9 @@ impl<'a> Generator<'a> { Node::Include(ref ws, path) => { self.handle_include(state, ws, path); }, - Node::Call(ref ws, scope, name, ref args) => self.write_call(state, ws, scope, name, args), + Node::Call(ref ws, scope, name, ref args) => { + self.write_call(state, ws, scope, name, args); + }, Node::Macro(_, ref m) => { if let AstLevel::Nested = level { panic!("macro blocks only allowed at the top level"); @@ -446,7 +448,8 @@ impl<'a> Generator<'a> { self.locals.pop(); } - fn write_call(&mut self, state: &'a State, ws: &WS, scope: Option<&str>, name: &str, args: &[Expr]) { + fn write_call(&mut self, state: &'a State, ws: &WS, scope: Option<&str>, name: &str, + args: &[Expr]) { let def = state.macros.get(&(scope, name)).unwrap_or_else(|| { if let Some(ref s) = scope { panic!(format!("macro '{}::{}' not found", s, name)); |