aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-05-24 20:58:54 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-05-24 20:58:54 +0200
commitdd35f82534303c98f4ba5ce8b68ad19a6d65f83e (patch)
tree9aeecc8aba69ba9dab101938f24f27a77c9c7655 /askama_derive
parentafad099809d8badb697dd3cfb7ac62c72d724391 (diff)
downloadaskama-dd35f82534303c98f4ba5ce8b68ad19a6d65f83e.tar.gz
askama-dd35f82534303c98f4ba5ce8b68ad19a6d65f83e.tar.bz2
askama-dd35f82534303c98f4ba5ce8b68ad19a6d65f83e.zip
Fix lifetime arguments to Rocket impls (fixes #89)
Broken during the upgrade to syn-0.14/quote-0.6.
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index 1233f36..30acac5 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -292,7 +292,7 @@ impl<'a> Generator<'a> {
// Implement Rocket's `Responder`.
fn impl_responder(&mut self, state: &'a State) {
- let lifetime = syn::Lifetime::new("r", Span::call_site());
+ let lifetime = syn::Lifetime::new("'r", Span::call_site());
let param = syn::GenericParam::Lifetime(syn::LifetimeDef::new(lifetime));
self.write_header(state, "::askama::rocket::Responder<'r>", Some(vec![param]));
self.writeln("fn respond_to(self, _: &::askama::rocket::Request) \