From c6f9a053c7328e6c782508114bd96aa569b5de7d Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 28 Jan 2020 22:06:11 +0100 Subject: Move Rocket integration into askama_rocket crate --- askama_derive/src/generator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'askama_derive') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 430afb8..0d77c16 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -221,19 +221,19 @@ impl<'a> Generator<'a> { let param = syn::GenericParam::Lifetime(syn::LifetimeDef::new(lifetime)); self.write_header( buf, - "::askama::rocket::Responder<'askama>", + "::askama_rocket::Responder<'askama>", Some(vec![param]), ); buf.writeln( - "fn respond_to(self, _: &::askama::rocket::Request) \ - -> ::askama::rocket::Result<'askama> {", + "fn respond_to(self, _: &::askama_rocket::Request) \ + -> ::askama_rocket::Result<'askama> {", ); let ext = match self.input.path.extension() { Some(s) => s.to_str().unwrap(), None => "txt", }; - buf.writeln(&format!("::askama::rocket::respond(&self, {:?})", ext)); + buf.writeln(&format!("::askama_rocket::respond(&self, {:?})", ext)); buf.writeln("}"); buf.writeln("}"); -- cgit