clean: add docstrings, move a few things around

This commit is contained in:
Oystein Kristoffer Tveit 2024-04-30 17:39:33 +02:00
parent 03bcf9976d
commit bed3c05c2a
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 1 additions and 2 deletions

View File

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