aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-11-07 21:33:42 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-11-07 21:33:43 +0100
commit2ff8f28cfd3df054e0ed8fabf4f93cf44938d0a5 (patch)
tree135d5c1285cb907bd97166f13ade32d005005889
parent01ba878158013b8e986387c077bf645b44679ba7 (diff)
downloadaskama-2ff8f28cfd3df054e0ed8fabf4f93cf44938d0a5.tar.gz
askama-2ff8f28cfd3df054e0ed8fabf4f93cf44938d0a5.tar.bz2
askama-2ff8f28cfd3df054e0ed8fabf4f93cf44938d0a5.zip
Limit line length to < 100 characters
-rw-r--r--askama_shared/src/generator.rs6
1 files changed, 4 insertions, 2 deletions
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();