aboutsummaryrefslogtreecommitdiffstats
path: root/askama_tide/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-01-06 14:43:01 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-09-19 12:34:44 +0200
commitea8be4421d73a9ef056c05889d87062dfb5a69c8 (patch)
tree571c1dc918cbc5dfdd916a6c775356e770e676b0 /askama_tide/src/lib.rs
parent7edb3d4685aff00880906873db4eb9f649a077d9 (diff)
downloadaskama-ea8be4421d73a9ef056c05889d87062dfb5a69c8.tar.gz
askama-ea8be4421d73a9ef056c05889d87062dfb5a69c8.tar.bz2
askama-ea8be4421d73a9ef056c05889d87062dfb5a69c8.zip
Remove ext argument in integrations
Diffstat (limited to 'askama_tide/src/lib.rs')
-rw-r--r--askama_tide/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
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: Template>(t: &T, _ext: &str) -> Result<Body> {
+pub fn try_into_body<T: Template>(t: &T) -> Result<Body> {
let string = t.render()?;
let mut body = Body::from_string(string);
body.set_mime(T::MIME_TYPE);
Ok(body)
}
-pub fn into_response<T: Template>(t: &T, ext: &str) -> Response {
- match try_into_body(t, ext) {
+pub fn into_response<T: Template>(t: &T) -> Response {
+ match try_into_body(t) {
Ok(body) => {
let mut response = Response::new(200);
response.set_body(body);