summaryrefslogtreecommitdiff
path: root/src/api/guzzle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/guzzle.rs')
-rw-r--r--src/api/guzzle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/guzzle.rs b/src/api/guzzle.rs
index 1f285e9..2f2571a 100644
--- a/src/api/guzzle.rs
+++ b/src/api/guzzle.rs
@@ -23,7 +23,7 @@ pub async fn get_random_teawie() -> Result<String> {
let status = resp.status();
if let StatusCode::OK = status {
- let data = resp.json::<GuzzleResponse>().await?;
+ let data: GuzzleResponse = resp.json().await?;
Ok(data.url)
} else {
Err(eyre!("Failed to get random Teawie with {status}"))