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 | d526bbfe16cd315a2e5e59b254584bdab9044844 (patch) | |
tree | 9cdbfbdca46d7de272a8038a5d7c86792be0ced7 /askama_shared/src/lib.rs | |
parent | baa2081714f50e9eb8a30dbb55440d7bc36f806b (diff) | |
download | askama-d526bbfe16cd315a2e5e59b254584bdab9044844.tar.gz askama-d526bbfe16cd315a2e5e59b254584bdab9044844.tar.bz2 askama-d526bbfe16cd315a2e5e59b254584bdab9044844.zip |
Extract generator::State type to clarify structure
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 57e4aff..066faca 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -36,7 +36,7 @@ pub fn build_template(ast: &syn::DeriveInput) -> String { if data.meta.print == Print::Ast || data.meta.print == Print::All { println!("{:?}", nodes); } - let code = generator::generate(data.ast, &data.path, &nodes); + let code = generator::generate(&data, &nodes); if data.meta.print == Print::Code || data.meta.print == Print::All { println!("{}", code); } |