From a38d5c35925f8c84dc26af937e9d82caa404d435 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 7 Aug 2021 20:29:24 +0200 Subject: [PATCH] Re-export `http_body::Body` (#152) Makes writing `IntoResponse` impls easier --- src/body.rs | 3 ++- src/response.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/body.rs b/src/body.rs index 5ec10bbc..552f9802 100644 --- a/src/body.rs +++ b/src/body.rs @@ -2,9 +2,10 @@ use crate::Error; use bytes::Bytes; -use http_body::Body as _; use tower::BoxError; +#[doc(no_inline)] +pub use http_body::Body as HttpBody; #[doc(no_inline)] pub use hyper::body::Body; diff --git a/src/response.rs b/src/response.rs index 6036e7e8..4c121dcf 100644 --- a/src/response.rs +++ b/src/response.rs @@ -107,7 +107,7 @@ pub trait IntoResponse { /// Generally it should be possible to set this to: /// /// ```rust,ignore - /// type BodyError = ::Error; + /// type BodyError = ::Error; /// ``` /// /// This associated type exists mainly to make returning `impl IntoResponse`