From 4089181f72c6e9c96cceff4dd0905bcda208ec05 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 21 Dec 2021 23:18:06 +0100 Subject: askama_rocket: revert to rocket 0.4 for release --- askama_shared/src/generator.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 1d8d32b..398c106 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -319,15 +319,17 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { let param = syn::GenericParam::Lifetime(syn::LifetimeDef::new(lifetime)); self.write_header( buf, - "::askama_rocket::Responder<'askama, 'static>", + "::askama_rocket::Responder<'askama>", Some(vec![param]), )?; + buf.writeln( "fn respond_to(self, _: &::askama_rocket::Request) \ - -> ::askama_rocket::Result<'static> {", + -> ::askama_rocket::Result<'askama> {", )?; let ext = self.input.extension().unwrap_or("txt"); buf.writeln(&format!("::askama_rocket::respond(&self, {:?})", ext))?; + buf.writeln("}")?; buf.writeln("}")?; Ok(()) -- cgit