From ea8be4421d73a9ef056c05889d87062dfb5a69c8 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Thu, 6 Jan 2022 14:43:01 +0100 Subject: Remove ext argument in integrations --- askama_tide/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'askama_tide') diff --git a/askama_tide/src/lib.rs b/askama_tide/src/lib.rs index be597bb..a7fa6c1 100644 --- a/askama_tide/src/lib.rs +++ b/askama_tide/src/lib.rs @@ -8,15 +8,15 @@ pub use tide; use askama::*; use tide::{Body, Response}; -pub fn try_into_body(t: &T, _ext: &str) -> Result { +pub fn try_into_body(t: &T) -> Result { let string = t.render()?; let mut body = Body::from_string(string); body.set_mime(T::MIME_TYPE); Ok(body) } -pub fn into_response(t: &T, ext: &str) -> Response { - match try_into_body(t, ext) { +pub fn into_response(t: &T) -> Response { + match try_into_body(t) { Ok(body) => { let mut response = Response::new(200); response.set_body(body); -- cgit