From b231accdedf1c867f22c74d7588055c4e3576789 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 22 Jul 2018 14:31:33 +0100 Subject: Rename Rocket impl method to clarify dependency --- askama_derive/src/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_derive/src') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 15a2e61..f586e1c 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -92,7 +92,7 @@ impl<'a> Generator<'a> { self.impl_modifier_response(); } if cfg!(feature = "rocket") { - self.impl_responder(); + self.impl_rocket_responder(); } self.buf } @@ -216,7 +216,7 @@ impl<'a> Generator<'a> { } // Implement Rocket's `Responder`. - fn impl_responder(&mut self) { + fn impl_rocket_responder(&mut self) { let lifetime = syn::Lifetime::new("'askama", Span::call_site()); let param = syn::GenericParam::Lifetime(syn::LifetimeDef::new(lifetime)); self.write_header("::askama::rocket::Responder<'askama>", Some(vec![param])); -- cgit