From bed3c05c2a7fd9a9091643f8ac9e731d8bfc16df Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 30 Apr 2024 17:39:33 +0200 Subject: [PATCH] clean: add docstrings, move a few things around --- src/event_parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/event_parser.rs b/src/event_parser.rs index e751c0b..4aac655 100644 --- a/src/event_parser.rs +++ b/src/event_parser.rs @@ -88,8 +88,7 @@ pub(crate) fn parse_event(raw_event: MpvIpcEvent) -> Result { "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