mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Fixed formatting
This commit is contained in:
parent
8939954bd7
commit
d47cc75dc6
1 changed files with 3 additions and 9 deletions
|
@ -106,15 +106,9 @@ impl SpotifyId {
|
|||
|
||||
pub fn to_uri(&self) -> String {
|
||||
match self.audio_type {
|
||||
SpotifyAudioType::Track => {
|
||||
format!("spotify:track:{}", self.to_base62())
|
||||
}
|
||||
SpotifyAudioType::Podcast => {
|
||||
format!("spotify:episode:{}", self.to_base62())
|
||||
}
|
||||
SpotifyAudioType::NonPlayable => {
|
||||
format!("spotify:unknown:{}", self.to_base62())
|
||||
}
|
||||
SpotifyAudioType::Track => format!("spotify:track:{}", self.to_base62()),
|
||||
SpotifyAudioType::Podcast => format!("spotify:episode:{}", self.to_base62()),
|
||||
SpotifyAudioType::NonPlayable => format!("spotify:unknown:{}", self.to_base62()),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue