From 9b25669a08dbd5ddf721e5786c1b20b0e984ec28 Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Wed, 26 Jan 2022 23:05:40 +0100 Subject: [PATCH] Fix clippy lints --- playback/src/audio_backend/rodio.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playback/src/audio_backend/rodio.rs b/playback/src/audio_backend/rodio.rs index 3827a8da..54851d8b 100644 --- a/playback/src/audio_backend/rodio.rs +++ b/playback/src/audio_backend/rodio.rs @@ -187,12 +187,14 @@ pub fn open(host: cpal::Host, device: Option, 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<()> {