Skip to content

Commit

Permalink
refactor(client): remove Unpin requirement on Body::Data
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Dec 11, 2019
1 parent 57ef271 commit 52cc3f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/client/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ impl<T, B> Future for Connection<T, B>
where
T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
B: Payload + Unpin + 'static,
B::Data: Unpin,
{
type Output = crate::Result<()>;

Expand Down Expand Up @@ -521,7 +520,6 @@ impl Builder {
where
T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
B: Payload + 'static,
B::Data: Unpin,
{
let opts = self.clone();

Expand Down Expand Up @@ -594,7 +592,6 @@ impl<T, B> Future for ProtoClient<T, B>
where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static,
B: Payload + Unpin + 'static,
B::Data: Unpin,
{
type Output = crate::Result<proto::Dispatched>;

Expand Down
4 changes: 2 additions & 2 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
///
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/proto/h2/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub(crate) async fn handshake<T, B>(
where
T: AsyncRead + AsyncWrite + Send + Unpin + 'static,
B: Payload,
B::Data: Unpin,
{
let (h2_tx, conn) = builder
.handshake::<_, SendBuf<B::Data>>(io)
Expand Down Expand Up @@ -93,7 +92,6 @@ where
impl<B> Future for ClientTask<B>
where
B: Payload + Unpin + 'static,
B::Data: Unpin,
{
type Output = crate::Result<Dispatched>;

Expand Down

0 comments on commit 52cc3f7

Please sign in to comment.