style: deny clippy::multiple_inherent_impls lint
This commit is contained in:
committed by
Henrik Friedrichsen
parent
0eee40e877
commit
4eff37a3ed
@@ -1,4 +1,4 @@
|
||||
#![deny(clippy::use_self)]
|
||||
#![deny(clippy::use_self, clippy::multiple_inherent_impl)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate cursive;
|
||||
|
||||
@@ -62,16 +62,7 @@ impl Worker {
|
||||
mixer,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Worker {
|
||||
fn drop(&mut self) {
|
||||
debug!("Worker thread is shutting down, stopping player");
|
||||
self.player.stop();
|
||||
}
|
||||
}
|
||||
|
||||
impl Worker {
|
||||
fn get_token(
|
||||
&self,
|
||||
sender: oneshot::Sender<Option<Token>>,
|
||||
@@ -211,3 +202,10 @@ impl Worker {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Worker {
|
||||
fn drop(&mut self) {
|
||||
debug!("Worker thread is shutting down, stopping player");
|
||||
self.player.stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user