From f4eb31ccc7882eb08e2e0ef03f0fc73edf9448ff Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 19 Nov 2020 20:56:25 +0100 Subject: Adapt to changed mendes API --- askama_shared/src/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared') 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 {", )?; buf.writeln(&format!( - "::mendes::askama::into_response(app, &self, {:?})", + "::mendes::askama::into_response(app, req, &self, {:?})", self.input.path.extension() ))?; buf.writeln("}")?; -- cgit