mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Fix clippy warnings
This commit is contained in:
parent
f5274f5ada
commit
7c3d89112d
11 changed files with 49 additions and 47 deletions
|
@ -18,9 +18,9 @@ impl From<&str> for SpotifyAudioType {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<&str> for SpotifyAudioType {
|
||||
fn into(self) -> &'static str {
|
||||
match self {
|
||||
impl From<SpotifyAudioType> for &str {
|
||||
fn from(audio_type: SpotifyAudioType) -> &'static str {
|
||||
match audio_type {
|
||||
SpotifyAudioType::Track => "track",
|
||||
SpotifyAudioType::Podcast => "episode",
|
||||
SpotifyAudioType::NonPlayable => "unknown",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue