From 2ff8f28cfd3df054e0ed8fabf4f93cf44938d0a5 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 7 Nov 2017 21:33:42 +0100 Subject: Limit line length to < 100 characters --- askama_shared/src/generator.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 402cd1a..f8d8ddf 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -12,7 +12,8 @@ use std::collections::{HashMap, HashSet}; use syn; -pub fn generate(input: &TemplateInput, nodes: &[Node], imported: &HashMap<(&str, &str), Macro>) -> String { +pub fn generate(input: &TemplateInput, nodes: &[Node], imported: &HashMap<(&str, &str), Macro>) + -> String { Generator::default().build(&State::new(input, nodes, imported)) } @@ -26,7 +27,8 @@ struct State<'a> { } impl<'a> State<'a> { - fn new<'n>(input: &'n TemplateInput, nodes: &'n [Node], imported: &'n HashMap<(&'n str, &'n str), Macro<'n>>) -> State<'n> { + fn new<'n>(input: &'n TemplateInput, nodes: &'n [Node], imported: + &'n HashMap<(&'n str, &'n str), Macro<'n>>) -> State<'n> { let mut base: Option<&Expr> = None; let mut blocks = Vec::new(); let mut macros = HashMap::new(); -- cgit