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),
|
"metadata-update" => Ok(Event::MetadataUpdate),
|
||||||
"seek" => Ok(Event::Seek),
|
"seek" => Ok(Event::Seek),
|
||||||
"playback-restart" => Ok(Event::PlaybackRestart),
|
"playback-restart" => Ok(Event::PlaybackRestart),
|
||||||
"property-change" => parse_event_property(event)
|
"property-change" => parse_event_property(event).map(|(id, property)| Event::PropertyChange { id, property }),
|
||||||
.map(|(id, property)| Event::PropertyChange { id, property }),
|
|
||||||
"chapter-change" => Ok(Event::ChapterChange),
|
"chapter-change" => Ok(Event::ChapterChange),
|
||||||
"client-message" => {
|
"client-message" => {
|
||||||
let args = event
|
let args = event
|
||||||
|
|
Loading…
Reference in New Issue