not unwraping, and passing err over requester
This commit is contained in:
@ -11,7 +11,7 @@ impl Requester {
|
||||
where
|
||||
T: DeserializeOwned,
|
||||
{
|
||||
let body = req.collect().await.unwrap().to_bytes();
|
||||
let body = req.collect().await?.to_bytes();
|
||||
Ok(serde_json::from_slice(&body)?)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user