aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-05 19:54:15 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-05 19:54:15 +0200
commite850b1e8050a2faa3eb9e84670c466e227aa3bdd (patch)
treebd32d960f9eef369f81ba3df981dca56adf8ce4e /askama_shared/src/generator.rs
parente7922da67116c9e3c1a53072650ac79b82a9abbd (diff)
downloadaskama-e850b1e8050a2faa3eb9e84670c466e227aa3bdd.tar.gz
askama-e850b1e8050a2faa3eb9e84670c466e227aa3bdd.tar.bz2
askama-e850b1e8050a2faa3eb9e84670c466e227aa3bdd.zip
Pass AST to code generator as reference
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 897556f..2385784 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -10,7 +10,7 @@ use std::collections::{HashMap, HashSet};
use syn;
-pub fn generate(ast: &syn::DeriveInput, path: &Path, nodes: Vec<Node>) -> String {
+pub fn generate(ast: &syn::DeriveInput, path: &Path, nodes: &[Node]) -> String {
let mut base: Option<&Expr> = None;
let mut blocks = Vec::new();
let mut macros = HashMap::new();