aboutsummaryrefslogtreecommitdiffstats
path: root/askama_tide
diff options
context:
space:
mode:
Diffstat (limited to 'askama_tide')
-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);