Remove some now redundant unwrap() calls
This commit is contained in:
parent
19252f6e90
commit
753192c13d
|
|
@ -58,7 +58,7 @@ pub async fn croak() -> ManifoldResult<Vec<Tip>> {
|
|||
let client = Client::new();
|
||||
result = client.get("https://frog.tips/api/1/tips/")
|
||||
.header(CONTENT_TYPE, "application/json")
|
||||
.send().await.unwrap().json().await.unwrap();
|
||||
.send().await?.json().await?;
|
||||
|
||||
debug!("Result: {:?}", &result);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue