Clippy fixes
This commit is contained in:
parent
9089ab3fd3
commit
df226aa5f3
1 changed files with 2 additions and 5 deletions
|
@ -55,7 +55,7 @@ enum PlaybackState {
|
|||
Playing = 0,
|
||||
Paused = 1,
|
||||
NotPlaying = 2,
|
||||
BUFFERING = 3,
|
||||
Buffering = 3,
|
||||
}
|
||||
#[derive(FromPrimitive)]
|
||||
enum CommandStatus {
|
||||
|
@ -186,10 +186,7 @@ impl MediaPlaybackCluster {
|
|||
}
|
||||
|
||||
pub fn add_callback(&mut self, name: Commands, callback: Box<dyn FnMut()>) {
|
||||
self.callbacks.push(ClusterCallback {
|
||||
name,
|
||||
callback: callback,
|
||||
});
|
||||
self.callbacks.push(ClusterCallback { name, callback });
|
||||
}
|
||||
|
||||
fn run_callback(&mut self, name: Commands) {
|
||||
|
|
Loading…
Add table
Reference in a new issue