diff --git a/core/src/spotify_uri.rs b/core/src/spotify_uri.rs index 96e5db89..abe5be14 100644 --- a/core/src/spotify_uri.rs +++ b/core/src/spotify_uri.rs @@ -322,12 +322,6 @@ impl SpotifyUri { } } -impl From for SpotifyUri { - fn from(id: SpotifyId) -> Self { - Self::Unknown { id } - } -} - impl fmt::Debug for SpotifyUri { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_tuple("SpotifyUri") diff --git a/playback/src/player.rs b/playback/src/player.rs index 48113688..2917ca53 100644 --- a/playback/src/player.rs +++ b/playback/src/player.rs @@ -528,7 +528,7 @@ impl Player { #[deprecated(since = "0.8.0", note = "use load_uri instead")] pub fn load(&self, track_id: SpotifyId, start_playing: bool, position_ms: u32) { self.command(PlayerCommand::Load { - track_id: track_id.into(), + track_id: SpotifyUri::Track { id: track_id }, play: start_playing, position_ms, }); @@ -545,7 +545,7 @@ impl Player { #[deprecated(since = "0.8.0", note = "use preload_uri instead")] pub fn preload(&self, track_id: SpotifyId) { self.command(PlayerCommand::Preload { - track_id: track_id.into(), + track_id: SpotifyUri::Track { id: track_id }, }); }