diff options
| author | seth <[email protected]> | 2023-12-15 02:13:08 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-15 16:41:13 -0500 |
| commit | cb81c0a8f4cc33d16ef6c45ae951ae0b926e936f (patch) | |
| tree | eee7c997d8788d5ba28b4f32820350fa1afb9bfc /src/api | |
| parent | 32d42d5fbab9c74dbe59fbdb94a29112f8766e27 (diff) | |
storage: don't copy all guild settings to index
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/guzzle.rs | 2 | ||||
| -rw-r--r-- | src/api/shiggy.rs | 2 |
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}")) |
