1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 10:19:27 +02:00

Add custom SpotifyIdError type

This commit is contained in:
Sasha Hilton 2018-02-25 15:47:57 +01:00
parent 084646e21b
commit 0abad9a8f8
2 changed files with 21 additions and 12 deletions

View file

@ -193,9 +193,10 @@ pub fn get_credentials<F: FnOnce(&String) -> String>(
Some(credentials.clone())
}
(Some(username), None, _) => {
Some(Credentials::with_password(username.clone(), prompt(&username)))
}
(Some(username), None, _) => Some(Credentials::with_password(
username.clone(),
prompt(&username),
)),
(None, _, Some(credentials)) => Some(credentials),