refactor(client): remove Unpin requirement on Body::Data

This commit is contained in:
Sean McArthur
2019-12-11 13:36:49 -08:00
parent 57ef271500
commit 52cc3f7367
3 changed files with 2 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ where
C::Transport: Unpin + Send + 'static,
C::Future: Unpin + Send + 'static,
B: Payload + Unpin + Send + 'static,
B::Data: Send + Unpin,
B::Data: Send,
{
/// Send a `GET` request to the supplied `Uri`.
///
@@ -551,7 +551,7 @@ where
C::Transport: Unpin + Send + 'static,
C::Future: Unpin + Send + 'static,
B: Payload + Unpin + Send + 'static,
B::Data: Send + Unpin,
B::Data: Send,
{
type Response = Response<Body>;
type Error = crate::Error;