diff --git a/http-body-util/Cargo.toml b/http-body-util/Cargo.toml index c1c7b98..80a642d 100644 --- a/http-body-util/Cargo.toml +++ b/http-body-util/Cargo.toml @@ -24,7 +24,7 @@ Combinators and adapters for HTTP request or response bodies. """ keywords = ["http"] categories = ["web-programming"] -rust-version = "1.49" +rust-version = "1.56" [dependencies] bytes = "1" diff --git a/http-body-util/src/combinators/box_body.rs b/http-body-util/src/combinators/box_body.rs index 2ec8010..9832673 100644 --- a/http-body-util/src/combinators/box_body.rs +++ b/http-body-util/src/combinators/box_body.rs @@ -71,7 +71,7 @@ where // === UnsyncBoxBody === impl UnsyncBoxBody { - /// Create a new `BoxBody`. + /// Create a new `UnsyncBoxBody`. pub fn new(body: B) -> Self where B: Body + Send + 'static, diff --git a/http-body-util/src/combinators/frame.rs b/http-body-util/src/combinators/frame.rs index 211fa08..ce6ab50 100644 --- a/http-body-util/src/combinators/frame.rs +++ b/http-body-util/src/combinators/frame.rs @@ -9,7 +9,7 @@ use core::task; /// Future that resolves to the next frame from a [`Body`]. pub struct Frame<'a, T: ?Sized>(pub(crate) &'a mut T); -impl<'a, T: Body + Unpin + ?Sized> Future for Frame<'a, T> { +impl Future for Frame<'_, T> { type Output = Option, T::Error>>; fn poll(mut self: Pin<&mut Self>, ctx: &mut task::Context<'_>) -> task::Poll {