Chore: Clippy fixes to match new MSRV.
This commit is contained in:
@@ -4,8 +4,10 @@ use crate::events::TrackEvent;
|
||||
/// Playback status of a track.
|
||||
#[derive(Clone, Debug)]
|
||||
#[non_exhaustive]
|
||||
#[derive(Default)]
|
||||
pub enum PlayMode {
|
||||
/// The track is currently playing.
|
||||
#[default]
|
||||
Play,
|
||||
/// The track is currently paused, and may be resumed.
|
||||
Pause,
|
||||
@@ -67,12 +69,6 @@ impl PlayMode {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for PlayMode {
|
||||
fn default() -> Self {
|
||||
PlayMode::Play
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for PlayMode {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.as_track_event() == other.as_track_event()
|
||||
|
||||
Reference in New Issue
Block a user