fix build on no compress feature

This commit is contained in:
fakeshadow 2021-02-17 00:00:25 -08:00
parent 78b2be3e8b
commit 849bb2d995
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ impl Future for SendClientRequest {
_ => return Poll::Ready(Err(SendRequestError::Timeout)),
}
}
Pin::new(send).poll(cx)
Pin::new(send)
.poll(cx)
.map_ok(|res| res.into_client_response())
}
SendClientRequest::Err(ref mut e) => match e.take() {
Some(e) => Poll::Ready(Err(e)),