aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-05 10:13:22 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-05 10:13:22 +0100
commit715eed3aeeb8e5d0cbb420239432cda69e6131f8 (patch)
tree758a36453cb474a1a9dac2ed912ce8237bc4f1e7 /askama_derive
parentf98b6285ba11d2d1580ff8be37d0fd7b60107733 (diff)
downloadaskama-715eed3aeeb8e5d0cbb420239432cda69e6131f8.tar.gz
askama-715eed3aeeb8e5d0cbb420239432cda69e6131f8.tar.bz2
askama-715eed3aeeb8e5d0cbb420239432cda69e6131f8.zip
Improve name and ownership of AST vector
Diffstat (limited to 'askama_derive')
-rw-r--r--askama_derive/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs
index cdb0dd9..03bfe7d 100644
--- a/askama_derive/src/lib.rs
+++ b/askama_derive/src/lib.rs
@@ -58,6 +58,6 @@ pub fn derive_template(input: TokenStream) -> TokenStream {
let path = get_path_from_attrs(&ast.attrs);
let src = get_template_source(&path);
- let tokens = askama::parser::parse(&src);
- askama::generator::generate(&ast, &tokens).parse().unwrap()
+ let nodes = askama::parser::parse(&src);
+ askama::generator::generate(&ast, nodes).parse().unwrap()
}