Removed all warnings
This commit is contained in:
parent
e127a297f7
commit
a2e42f44ff
2 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "drunk-venti-rust"
|
name = "drunk-venti-rust"
|
||||||
version = "1.0.3"
|
version = "1.0.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Evann Regnault"]
|
authors = ["Evann Regnault"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -51,7 +51,6 @@ impl Character {
|
||||||
let port = env::var("API_PORT").unwrap();
|
let port = env::var("API_PORT").unwrap();
|
||||||
let url = format!("http://{}:{}/api/characters/{}", host, port, character);
|
let url = format!("http://{}:{}/api/characters/{}", host, port, character);
|
||||||
let url = Url::parse(&*url).expect("Can't convert url");
|
let url = Url::parse(&*url).expect("Can't convert url");
|
||||||
let a = reqwest::get(url.clone()).await.expect("Can't access Url");
|
|
||||||
return reqwest::get(url).await.expect("Can't access Url").json::<Character>().await.expect("Wrong json format");
|
return reqwest::get(url).await.expect("Can't access Url").json::<Character>().await.expect("Wrong json format");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue