diff options
Diffstat (limited to 'askama_derive')
-rw-r--r-- | askama_derive/Cargo.toml | 2 | ||||
-rw-r--r-- | askama_derive/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/Cargo.toml b/askama_derive/Cargo.toml index 474b7e6..03b9b11 100644 --- a/askama_derive/Cargo.toml +++ b/askama_derive/Cargo.toml @@ -12,4 +12,4 @@ proc-macro = true [dependencies] askama = { path = "../askama" } -syn = "0.10" +syn = "0.11" 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"), |