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

View File

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