From d7ba9e0b6d56d7064634f10a78c0827edbab55b4 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 21 Jun 2018 13:19:32 +0200 Subject: Get rid of Generator::default() method --- askama_derive/src/generator.rs | 6 +----- 1 file changed, 1 insertion(+), 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) -- cgit