summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-15 02:13:08 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commitcb81c0a8f4cc33d16ef6c45ae951ae0b926e936f (patch)
treeeee7c997d8788d5ba28b4f32820350fa1afb9bfc /src/api
parent32d42d5fbab9c74dbe59fbdb94a29112f8766e27 (diff)
storage: don't copy all guild settings to index
Diffstat (limited to 'src/api')
-rw-r--r--src/api/guzzle.rs2
-rw-r--r--src/api/shiggy.rs2
2 files changed, 2 insertions, 2 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}"))
diff --git a/src/api/shiggy.rs b/src/api/shiggy.rs
index 1fe4b49..fb955bb 100644
--- a/src/api/shiggy.rs
+++ b/src/api/shiggy.rs
@@ -23,7 +23,7 @@ pub async fn get_random_shiggy() -> Result<String> {
let status = resp.status();
if let StatusCode::OK = status {
- let data = resp.json::<SafebooruResponse>().await?;
+ let data: SafebooruResponse = resp.json().await?;
Ok(data.file_url)
} else {
Err(eyre!("Failed to get random shiggy with {status}"))