diff --git a/minijinja/src/environment.rs b/minijinja/src/environment.rs index c7abaee0..70da0d21 100644 --- a/minijinja/src/environment.rs +++ b/minijinja/src/environment.rs @@ -675,9 +675,9 @@ impl<'source> Environment<'source> { fn _compile_expression<'expr>(&self, expr: &'expr str) -> Result, Error> { attach_basic_debug_info( parse_expr(expr).map(|ast| { - let mut gen = CodeGenerator::new("", expr); - gen.compile_expr(&ast); - gen.finish().0 + let mut g = CodeGenerator::new("", expr); + g.compile_expr(&ast); + g.finish().0 }), expr, ) diff --git a/minijinja/src/template.rs b/minijinja/src/template.rs index 339db36b..20e4cb6d 100644 --- a/minijinja/src/template.rs +++ b/minijinja/src/template.rs @@ -381,10 +381,10 @@ impl<'source> CompiledTemplate<'source> { config.syntax_config.clone(), config.ws_config )); - let mut gen = CodeGenerator::new(name, source); - gen.compile_stmt(&ast); - let buffer_size_hint = gen.buffer_size_hint(); - let (instructions, blocks) = gen.finish(); + let mut g = CodeGenerator::new(name, source); + g.compile_stmt(&ast); + let buffer_size_hint = g.buffer_size_hint(); + let (instructions, blocks) = g.finish(); Ok(CompiledTemplate { instructions, blocks,