style: deny clippy::multiple_inherent_impls lint

This commit is contained in:
Thomas Frans
2024-01-01 22:55:06 +01:00
committed by Henrik Friedrichsen
parent 0eee40e877
commit 4eff37a3ed
2 changed files with 8 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
#![deny(clippy::use_self)]
#![deny(clippy::use_self, clippy::multiple_inherent_impl)]
#[macro_use]
extern crate cursive;

View File

@@ -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();
}
}