diff options
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/guzzle.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/guzzle.rs b/src/api/guzzle.rs index e94ebb6..0321127 100644 --- a/src/api/guzzle.rs +++ b/src/api/guzzle.rs @@ -9,10 +9,10 @@ struct GuzzleResponse { const GUZZLE: &str = "https://api.mydadleft.me"; pub async fn get_random_teawie() -> String { - let endpoint = "/get_random_teawie"; - let resp = reqwest::get(GUZZLE.to_owned() + endpoint).await.unwrap(); // why did i have to own - // this constant? i have - // no idea! + let endpoint = "get_random_teawie"; + let resp = reqwest::get(format!("{GUZZLE}/{endpoint}")).await.unwrap(); // why did i have to own + // this constant? i have + // no idea! let err_msg = "couldn't get a teawie"; match resp.status() { |
