auto formatting

This commit is contained in:
jole 2022-07-19 21:06:47 +02:00
parent be2132735b
commit 71b148cce4
1 changed files with 3 additions and 7 deletions

View File

@ -54,7 +54,7 @@ pub enum MpvCommand {
}, },
Observe { Observe {
id: isize, id: isize,
property: String property: String,
}, },
PlaylistNext, PlaylistNext,
PlaylistPrev, PlaylistPrev,
@ -488,9 +488,7 @@ impl Mpv {
}, },
], ],
), ),
MpvCommand::Observe { id, property } => { MpvCommand::Observe { id, property } => observe_mpv_property(self, &id, &property),
observe_mpv_property(self, &id, &property)
}
MpvCommand::PlaylistClear => run_mpv_command(self, "playlist-clear", &[]), MpvCommand::PlaylistClear => run_mpv_command(self, "playlist-clear", &[]),
MpvCommand::PlaylistMove { from, to } => { MpvCommand::PlaylistMove { from, to } => {
run_mpv_command(self, "playlist-move", &[&from.to_string(), &to.to_string()]) run_mpv_command(self, "playlist-move", &[&from.to_string(), &to.to_string()])
@ -516,9 +514,7 @@ impl Mpv {
], ],
), ),
MpvCommand::Stop => run_mpv_command(self, "stop", &[]), MpvCommand::Stop => run_mpv_command(self, "stop", &[]),
MpvCommand::Unobserve(id) => { MpvCommand::Unobserve(id) => unobserve_mpv_property(self, &id),
unobserve_mpv_property(self, &id)
}
} }
} }