Warning fixes

This commit is contained in:
phoenix committed 2026-11-04 14:53:00 -05:00
1 parent 4bf850ae15
commit 8d2ed157d5
1 file changed
+4 -5
+4 -5
View File
@@ -8,11 +8,10 @@ pub struct SongEvent {
impl SongEvent { impl SongEvent {
pub fn is_event_type_valid(&self) -> bool { pub fn is_event_type_valid(&self) -> bool {
match self.event_type.as_str() { matches!(
SONG_EVENT_TYPE_PLAY => true, self.event_type.as_str(),
SONG_EVENT_TYPE_PAUSE => true, SONG_EVENT_TYPE_PLAY | SONG_EVENT_TYPE_PAUSE
_ => false, )
}
} }
} }