From e808b2a43ece9892314f68028679ec68566b21b3 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Fri, 4 Feb 2022 20:13:03 +0100 Subject: Remove unneeded external dependencies --- askama_gotham/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'askama_gotham/src/lib.rs') 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: &T, _ext: &str) -> Response { 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(), -- cgit