mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 09:29:46 +00:00
Tweaks from cargo update and patches
This commit is contained in:
parent
890b70212a
commit
8c676d98c5
3 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
use hyper::{
|
||||
StatusCode,
|
||||
header::{HeaderValue, HeaderMap},
|
||||
body::{Buf, Body},
|
||||
body::{HttpBody, Buf, Body},
|
||||
};
|
||||
|
||||
use crate::{Client, Error};
|
||||
|
@ -17,6 +17,6 @@ impl<'a> Response<'a> {
|
|||
self.0.headers()
|
||||
}
|
||||
pub async fn body(self) -> Result<impl std::io::Read, Error> {
|
||||
hyper::body::aggregate(self.0.into_body()).await.map(Buf::reader).map_err(Error::Hyper)
|
||||
Ok(self.0.into_body().collect().await.map_err(Error::Hyper)?.aggregate().reader())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,5 +13,5 @@ rust-version = "1.56"
|
|||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[dependencies]
|
||||
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
|
||||
mach2 = "0.4"
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
#[cfg(any(target_os = "macos", target_os = "ios"))]
|
||||
pub use mach2::*;
|
||||
|
|
Loading…
Reference in a new issue