Change assert_eq to assert
This commit is contained in:
parent
ecbc3a50f5
commit
a849053fd3
|
@ -421,7 +421,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "nhentairs"
|
||||
version = "0.1.1"
|
||||
version = "0.1.3"
|
||||
dependencies = [
|
||||
"reqwest",
|
||||
"serde",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "nhentairs"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
authors = ["blank X <theblankx@protonmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ pub async fn get_sauce_info(client: reqwest::Client, sauce: usize) -> Result<str
|
|||
let resp = client.get(&uri)
|
||||
.send()
|
||||
.await?;
|
||||
assert_eq!(resp.status().is_success(), true);
|
||||
assert!(resp.status().is_success());
|
||||
let body = resp.text().await?;
|
||||
let mut body: serde_json::Value = serde_json::from_str(&body).unwrap();
|
||||
fix_gallery(&mut body).unwrap();
|
||||
|
|
Loading…
Reference in New Issue