From e850b1e8050a2faa3eb9e84670c466e227aa3bdd Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 5 Sep 2017 19:54:15 +0200 Subject: Pass AST to code generator as reference --- askama_shared/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/lib.rs') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 60a263f..ac88de0 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -44,7 +44,7 @@ pub fn build_template(ast: &syn::DeriveInput) -> String { if meta.print == Print::Ast || meta.print == Print::All { println!("{:?}", nodes); } - let code = generator::generate(ast, &path, nodes); + let code = generator::generate(ast, &path, &nodes); if meta.print == Print::Code || meta.print == Print::All { println!("{}", code); } -- cgit