Remove inferred 'static lifetime on const, Rust 1.17+
No longer needed since it is inferred automatically: https://rust-lang-nursery.github.io/edition-guide/rust-2018/ownership-and-lifetimes/simpler-lifetimes-in-static-and-const.html
This commit is contained in:
parent
f0fd3eabf4
commit
d8b2c17f83
|
@ -23,10 +23,10 @@ pub struct Profile {
|
|||
pub access_token: String,
|
||||
}
|
||||
|
||||
const JOIN_URL: &'static str = "https://sessionserver.mojang.com/session/minecraft/join";
|
||||
const LOGIN_URL: &'static str = "https://authserver.mojang.com/authenticate";
|
||||
const REFRESH_URL: &'static str = "https://authserver.mojang.com/refresh";
|
||||
const VALIDATE_URL: &'static str = "https://authserver.mojang.com/validate";
|
||||
const JOIN_URL: &str = "https://sessionserver.mojang.com/session/minecraft/join";
|
||||
const LOGIN_URL: &str = "https://authserver.mojang.com/authenticate";
|
||||
const REFRESH_URL: &str = "https://authserver.mojang.com/refresh";
|
||||
const VALIDATE_URL: &str = "https://authserver.mojang.com/validate";
|
||||
|
||||
impl Profile {
|
||||
pub fn login(username: &str, password: &str, token: &str) -> Result<Profile, super::Error> {
|
||||
|
|
Loading…
Reference in New Issue