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`