refactor: update dependencies and add blue mage
This commit is contained in:
parent
9e7db2771d
commit
8a9402f345
|
@ -6,7 +6,7 @@ authors = ["Kyle Clemens <git@kyleclemens.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
reqwest = "0.8"
|
reqwest = "0.9"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
url = "1"
|
url = "1"
|
||||||
|
|
|
@ -49,8 +49,8 @@ impl LodestoneScraper {
|
||||||
.send()
|
.send()
|
||||||
.map_err(Error::Net)?;
|
.map_err(Error::Net)?;
|
||||||
match res.status() {
|
match res.status() {
|
||||||
StatusCode::Ok => {},
|
StatusCode::OK => {},
|
||||||
StatusCode::NotFound => return Err(Error::NotFound),
|
StatusCode::NOT_FOUND => return Err(Error::NotFound),
|
||||||
x => return Err(Error::UnexpectedResponse(x)),
|
x => return Err(Error::UnexpectedResponse(x)),
|
||||||
}
|
}
|
||||||
res
|
res
|
||||||
|
|
|
@ -78,6 +78,7 @@ impl AsLodestone for Job {
|
||||||
Job::Astrologian => 33,
|
Job::Astrologian => 33,
|
||||||
Job::Samurai => 34,
|
Job::Samurai => 34,
|
||||||
Job::RedMage => 35,
|
Job::RedMage => 35,
|
||||||
|
Job::BlueMage => 36,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue