diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-04 11:15:52 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-04 11:15:52 +0100 |
commit | 69238e55d3fe8ff6b8eff58d3cd96b99eb886617 (patch) | |
tree | daf44483ec1eb621a264fe09fb95c2a6bb3d7017 /askama_derive/src | |
parent | 504a5f41b3e33a45ed14598d2603277ad5b1a355 (diff) | |
download | askama-69238e55d3fe8ff6b8eff58d3cd96b99eb886617.tar.gz askama-69238e55d3fe8ff6b8eff58d3cd96b99eb886617.tar.bz2 askama-69238e55d3fe8ff6b8eff58d3cd96b99eb886617.zip |
Upgrade to syn-0.11
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 31a1364..37704b3 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -50,7 +50,7 @@ fn get_template_source(tpl_file: &str) -> String { pub fn derive_template(input: TokenStream) -> TokenStream { let source = input.to_string(); - let ast = syn::parse_macro_input(&source).unwrap(); + let ast = syn::parse_derive_input(&source).unwrap(); let _ctx = match ast.body { syn::Body::Struct(ref data) => data, _ => panic!("#[derive(Template)] can only be used with structs"), |