clean: add docstrings, move a few things around
This commit is contained in:
parent
03bcf9976d
commit
bed3c05c2a
|
@ -88,8 +88,7 @@ pub(crate) fn parse_event(raw_event: MpvIpcEvent) -> Result<Event, Error> {
|
|||
"metadata-update" => Ok(Event::MetadataUpdate),
|
||||
"seek" => Ok(Event::Seek),
|
||||
"playback-restart" => Ok(Event::PlaybackRestart),
|
||||
"property-change" => parse_event_property(event)
|
||||
.map(|(id, property)| Event::PropertyChange { id, property }),
|
||||
"property-change" => parse_event_property(event).map(|(id, property)| Event::PropertyChange { id, property }),
|
||||
"chapter-change" => Ok(Event::ChapterChange),
|
||||
"client-message" => {
|
||||
let args = event
|
||||
|
|
Loading…
Reference in New Issue