mirror of https://github.com/fafhrd91/actix-web
fix formatting
This commit is contained in:
parent
f1a59abea7
commit
9b5e1e283d
16
src/test.rs
16
src/test.rs
|
@ -254,8 +254,12 @@ where
|
|||
{
|
||||
let body = read_body(res).await;
|
||||
|
||||
serde_json::from_slice(&body)
|
||||
.unwrap_or_else(|e| panic!("read_response_json failed during deserialization of body: {:?}, {}", body, e))
|
||||
serde_json::from_slice(&body).unwrap_or_else(|e| {
|
||||
panic!(
|
||||
"read_response_json failed during deserialization of body: {:?}, {}",
|
||||
body, e
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
pub async fn load_stream<S>(mut stream: S) -> Result<Bytes, Error>
|
||||
|
@ -311,8 +315,12 @@ where
|
|||
{
|
||||
let body = read_response(app, req).await;
|
||||
|
||||
serde_json::from_slice(&body)
|
||||
.unwrap_or_else(|_| panic!("read_response_json failed during deserialization of body: {:?}", body))
|
||||
serde_json::from_slice(&body).unwrap_or_else(|_| {
|
||||
panic!(
|
||||
"read_response_json failed during deserialization of body: {:?}",
|
||||
body
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
/// Test `Request` builder.
|
||||
|
|
Loading…
Reference in New Issue