From dd35f82534303c98f4ba5ce8b68ad19a6d65f83e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 24 May 2018 20:58:54 +0200 Subject: Fix lifetime arguments to Rocket impls (fixes #89) Broken during the upgrade to syn-0.14/quote-0.6. --- askama_derive/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive') 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) \ -- cgit