auto formatting
This commit is contained in:
parent
be2132735b
commit
71b148cce4
10
src/lib.rs
10
src/lib.rs
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue