aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_gotham/Cargo.toml2
-rw-r--r--askama_gotham/src/lib.rs7
-rw-r--r--askama_mendes/Cargo.toml1
3 files changed, 5 insertions, 5 deletions
diff --git a/askama_gotham/Cargo.toml b/askama_gotham/Cargo.toml
index 2f42be8..2d36ea1 100644
--- a/askama_gotham/Cargo.toml
+++ b/askama_gotham/Cargo.toml
@@ -15,8 +15,8 @@ edition = "2018"
[dependencies]
askama = { version = "0.11.0", path = "../askama", default-features = false, features = ["with-gotham", "mime", "mime_guess"] }
gotham = { version = "0.7", default-features = false }
-hyper = "0.14.4"
[dev-dependencies]
gotham = { version = "0.7", features = ["testing"] }
+hyper = "0.14"
mime = "0.3"
diff --git a/askama_gotham/src/lib.rs b/askama_gotham/src/lib.rs
index c2c933d..a32398d 100644
--- a/askama_gotham/src/lib.rs
+++ b/askama_gotham/src/lib.rs
@@ -5,16 +5,17 @@
pub use askama::*;
pub use gotham::handler::IntoResponse;
+use gotham::hyper::header;
+pub use gotham::hyper::{Body, Response, StatusCode};
pub use gotham::state::State;
-pub use hyper::{Body, Response, StatusCode};
pub fn respond<T: Template>(t: &T, _ext: &str) -> Response<Body> {
match t.render() {
Ok(body) => Response::builder()
.status(StatusCode::OK)
.header(
- hyper::header::CONTENT_TYPE,
- hyper::header::HeaderValue::from_static(T::MIME_TYPE),
+ header::CONTENT_TYPE,
+ header::HeaderValue::from_static(T::MIME_TYPE),
)
.body(body.into())
.unwrap(),
diff --git a/askama_mendes/Cargo.toml b/askama_mendes/Cargo.toml
index eb241de..600c584 100644
--- a/askama_mendes/Cargo.toml
+++ b/askama_mendes/Cargo.toml
@@ -15,7 +15,6 @@ edition = "2018"
[dependencies]
askama = { version = "0.11.0-beta.1", path = "../askama", default-features = false, features = ["with-mendes", "mime", "mime_guess"] }
mendes = "0.0.60"
-mime_guess = "2.0.3"
[dev-dependencies]
async-trait = "0.1.51"