Fixed formatting

This commit is contained in:
Michael Pivonka 2020-03-02 06:36:27 -05:00
parent 8939954bd7
commit d47cc75dc6

View file

@ -106,15 +106,9 @@ impl SpotifyId {
pub fn to_uri(&self) -> String { pub fn to_uri(&self) -> String {
match self.audio_type { match self.audio_type {
SpotifyAudioType::Track => { SpotifyAudioType::Track => format!("spotify:track:{}", self.to_base62()),
format!("spotify:track:{}", self.to_base62()) SpotifyAudioType::Podcast => format!("spotify:episode:{}", self.to_base62()),
} SpotifyAudioType::NonPlayable => format!("spotify:unknown:{}", self.to_base62()),
SpotifyAudioType::Podcast => {
format!("spotify:episode:{}", self.to_base62())
}
SpotifyAudioType::NonPlayable => {
format!("spotify:unknown:{}", self.to_base62())
}
} }
} }