aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index a56bd2d..349ecf9 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -70,7 +70,7 @@ pub fn generate(input: &TemplateInput, nodes: &[Node]) -> String {
}
}
- Generator::default().build(&Context {
+ Generator::new(SetChain::new(), 0).build(&Context {
input,
nodes,
blocks: &blocks,
@@ -132,10 +132,6 @@ impl<'a> Generator<'a> {
}
}
- fn default<'n>() -> Generator<'n> {
- Self::new(SetChain::new(), 0)
- }
-
fn child(&mut self) -> Generator {
let locals = SetChain::with_parent(&self.locals);
Self::new(locals, self.indent)