diff options
author | Ryan McGrath <ryan@rymc.io> | 2018-07-22 14:31:33 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-22 14:31:33 +0100 |
commit | b231accdedf1c867f22c74d7588055c4e3576789 (patch) | |
tree | 9afd86e23db9fbdb22c8c130b34823c4ec521a61 /askama_derive | |
parent | c7fa0dcae424b58892ba59e40c6c813a372618e1 (diff) | |
download | askama-b231accdedf1c867f22c74d7588055c4e3576789.tar.gz askama-b231accdedf1c867f22c74d7588055c4e3576789.tar.bz2 askama-b231accdedf1c867f22c74d7588055c4e3576789.zip |
Rename Rocket impl method to clarify dependency
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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])); |