From c441459a27eb7c0c476ce70833e05224ba6894fd Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Mon, 26 Sep 2022 16:51:25 +0200 Subject: Remove `_ext` from `askama_hyper`, too That part was missing from #632, because #632 came before #706, and I forgot to update the older PR. --- askama_hyper/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'askama_hyper/src') diff --git a/askama_hyper/src/lib.rs b/askama_hyper/src/lib.rs index 07ede88..5032da2 100644 --- a/askama_hyper/src/lib.rs +++ b/askama_hyper/src/lib.rs @@ -7,7 +7,7 @@ pub use askama::*; pub use hyper; use hyper::{header, Body, Response, StatusCode}; -pub fn try_respond(t: &T, _ext: &str) -> Result> { +pub fn try_respond(t: &T) -> Result> { Response::builder() .status(StatusCode::OK) .header( @@ -18,8 +18,8 @@ pub fn try_respond(t: &T, _ext: &str) -> Result> { .map_err(|err| Error::Custom(Box::new(err))) } -pub fn respond(t: &T, _ext: &str) -> Response { - match try_respond(t, _ext) { +pub fn respond(t: &T) -> Response { + match try_respond(t) { Ok(response) => response, Err(_) => Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) -- cgit