Chore: Clippy fixes to match new MSRV.

This commit is contained in:
Kyle Simpson
2023-05-21 14:25:13 +01:00
parent 1bf17d128e
commit 9fa063ff0e
10 changed files with 17 additions and 34 deletions

View File

@@ -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()