Fix clippy lints

This commit is contained in:
Roderick van Domburg 2022-01-26 23:05:40 +01:00
parent 827b815da9
commit 9b25669a08
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451

View file

@ -187,12 +187,14 @@ pub fn open(host: cpal::Host, device: Option<String>, format: AudioFormat) -> Ro
impl Sink for RodioSink {
fn start(&mut self) -> SinkResult<()> {
Ok(self.rodio_sink.play())
self.rodio_sink.play();
Ok(())
}
fn stop(&mut self) -> SinkResult<()> {
self.rodio_sink.sleep_until_end();
Ok(self.rodio_sink.pause())
self.rodio_sink.pause();
Ok(())
}
fn write(&mut self, packet: AudioPacket, converter: &mut Converter) -> SinkResult<()> {