summaryrefslogtreecommitdiff
path: root/src/api/shiggy.rs
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/shiggy.rs
parent32d42d5fbab9c74dbe59fbdb94a29112f8766e27 (diff)
storage: don't copy all guild settings to index
Diffstat (limited to 'src/api/shiggy.rs')
-rw-r--r--src/api/shiggy.rs2
1 files changed, 1 insertions, 1 deletions
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}"))