From 68e51f263da0a4d311783ecdd86af99b6fb3606f Mon Sep 17 00:00:00 2001 From: Qluxzz Date: Thu, 7 Jan 2021 23:59:48 +0100 Subject: [PATCH] Replace from_str with parse --- src/spotify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spotify.rs b/src/spotify.rs index 1aacd1a..54f0f89 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -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 }