aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-04 11:15:52 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-04 11:15:52 +0100
commit69238e55d3fe8ff6b8eff58d3cd96b99eb886617 (patch)
treedaf44483ec1eb621a264fe09fb95c2a6bb3d7017 /askama_derive
parent504a5f41b3e33a45ed14598d2603277ad5b1a355 (diff)
downloadaskama-69238e55d3fe8ff6b8eff58d3cd96b99eb886617.tar.gz
askama-69238e55d3fe8ff6b8eff58d3cd96b99eb886617.tar.bz2
askama-69238e55d3fe8ff6b8eff58d3cd96b99eb886617.zip
Upgrade to syn-0.11
Diffstat (limited to '')
-rw-r--r--askama_derive/Cargo.toml2
-rw-r--r--askama_derive/src/lib.rs2
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"),