mirror of https://github.com/fafhrd91/actix-web
cargo fmt
This commit is contained in:
parent
4d1c60466c
commit
4799878895
|
@ -269,8 +269,9 @@ where
|
||||||
{
|
{
|
||||||
let body = read_body(res).await;
|
let body = read_body(res).await;
|
||||||
|
|
||||||
serde_json::from_slice(&body)
|
serde_json::from_slice(&body).unwrap_or_else(|e| {
|
||||||
.unwrap_or_else(|e| panic!("read_response_json failed during deserialization: {}", e))
|
panic!("read_response_json failed during deserialization: {}", e)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn load_stream<S>(mut stream: S) -> Result<Bytes, Error>
|
pub async fn load_stream<S>(mut stream: S) -> Result<Bytes, Error>
|
||||||
|
|
Loading…
Reference in New Issue