From 69238e55d3fe8ff6b8eff58d3cd96b99eb886617 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 4 Feb 2017 11:15:52 +0100 Subject: Upgrade to syn-0.11 --- askama_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src') 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"), -- cgit