Replace from_str with parse

This commit is contained in:
Qluxzz
2021-01-07 23:59:48 +01:00
committed by Henrik Friedrichsen
parent 9447b33684
commit 68e51f263d

View File

@@ -306,7 +306,7 @@ impl Spotify {
spotify.country = spotify
.current_user()
.and_then(|u| u.country)
.and_then(|c| Country::from_str(&c.as_str()).ok());
.and_then(|c| c.parse().ok());
spotify
}