diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-05 19:54:15 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-05 19:54:15 +0200 |
commit | e850b1e8050a2faa3eb9e84670c466e227aa3bdd (patch) | |
tree | bd32d960f9eef369f81ba3df981dca56adf8ce4e /askama_shared/src/lib.rs | |
parent | e7922da67116c9e3c1a53072650ac79b82a9abbd (diff) | |
download | askama-e850b1e8050a2faa3eb9e84670c466e227aa3bdd.tar.gz askama-e850b1e8050a2faa3eb9e84670c466e227aa3bdd.tar.bz2 askama-e850b1e8050a2faa3eb9e84670c466e227aa3bdd.zip |
Pass AST to code generator as reference
Diffstat (limited to 'askama_shared/src/lib.rs')
-rw-r--r-- | askama_shared/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |