diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-11-19 20:56:25 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-11-19 20:56:25 +0100 |
commit | f4eb31ccc7882eb08e2e0ef03f0fc73edf9448ff (patch) | |
tree | 2045ea3d3799d4d06bd3a65c5c2693e81ee2ced7 /askama_shared | |
parent | 8fed98361741cfbc7bca4b94bd9a1b06a73e3bfa (diff) | |
download | askama-f4eb31ccc7882eb08e2e0ef03f0fc73edf9448ff.tar.gz askama-f4eb31ccc7882eb08e2e0ef03f0fc73edf9448ff.tar.bz2 askama-f4eb31ccc7882eb08e2e0ef03f0fc73edf9448ff.zip |
Adapt to changed mendes API
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/generator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index a37ca7c..3b73170 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -308,12 +308,12 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { )?; buf.writeln( - "fn into_response(self, app: &A) \ + "fn into_response(self, app: &A, req: &::mendes::http::request::Parts) \ -> ::mendes::http::Response<A::ResponseBody> {", )?; buf.writeln(&format!( - "::mendes::askama::into_response(app, &self, {:?})", + "::mendes::askama::into_response(app, req, &self, {:?})", self.input.path.extension() ))?; buf.writeln("}")?; |