Warning fixes
This commit is contained in:
1 file changed
+4
-5
+4
-5
@@ -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,
|
)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user