From 8a9402f345332538c65393311a2845ee5098f898 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 15 Jan 2019 14:38:54 -0500 Subject: [PATCH] refactor: update dependencies and add blue mage --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- src/util/as_lodestone.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dc223fe..5ce6ef0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Kyle Clemens "] edition = "2018" [dependencies] -reqwest = "0.8" +reqwest = "0.9" failure = "0.1" lazy_static = "1" url = "1" diff --git a/src/lib.rs b/src/lib.rs index 74da0f9..05cca5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -49,8 +49,8 @@ impl LodestoneScraper { .send() .map_err(Error::Net)?; match res.status() { - StatusCode::Ok => {}, - StatusCode::NotFound => return Err(Error::NotFound), + StatusCode::OK => {}, + StatusCode::NOT_FOUND => return Err(Error::NotFound), x => return Err(Error::UnexpectedResponse(x)), } res diff --git a/src/util/as_lodestone.rs b/src/util/as_lodestone.rs index 9288a60..a6a960b 100644 --- a/src/util/as_lodestone.rs +++ b/src/util/as_lodestone.rs @@ -78,6 +78,7 @@ impl AsLodestone for Job { Job::Astrologian => 33, Job::Samurai => 34, Job::RedMage => 35, + Job::BlueMage => 36, } } }