diff --git a/playback/src/player.rs b/playback/src/player.rs index c0a8a351..778368b6 100644 --- a/playback/src/player.rs +++ b/playback/src/player.rs @@ -188,11 +188,8 @@ impl PlayerState { Playing { track_id, .. } => { let old_state = mem::replace(self, EndOfTrack { track_id }); old_state.send_end_of_track(); - } - - EndOfTrack { .. } => warn!("signal_end_of_track from end of track state"), - Stopped => warn!("signal_end_of_track from stopped state"), - Invalid => panic!("invalid state"), + }, + _ => panic!("Called playing_to_end_of_track in non-playing state.") } }