From 99e2beb508ad503fe45aa92be3d6bef8914149bc Mon Sep 17 00:00:00 2001 From: Ante Dražić <96959476+dretva@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:55:12 +0200 Subject: [PATCH] Bump "reqwest" dependency to make build work again --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 445b90d..5be5964 100644 --- a/Cargo.toml +++ a/Cargo.toml @@ -10,7 +10,7 @@ [dependencies] ratelimit = "0.4.2" -reqwest = "0.8.1" +reqwest = "0.9.24" clap = "2.27.1" lazy_static = "0.2" fern = "0.4.3" diff --git a/src/main.rs b/src/main.rs index 4de5676..680c18c 100644 --- a/src/main.rs +++ a/src/main.rs @@ -164,7 +164,7 @@ debug!("{:?}", resp); if !resp.status().is_success() { - if resp.status().eq(&StatusCode::NotFound) { + if resp.status().eq(&StatusCode::NOT_FOUND) { Ok(()) } else { Err(Box::from("Bad response from Riot API")) -- rgit 0.1.5