mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix clippy lints
This commit is contained in:
parent
827b815da9
commit
9b25669a08
1 changed files with 4 additions and 2 deletions
|
@ -187,12 +187,14 @@ pub fn open(host: cpal::Host, device: Option<String>, format: AudioFormat) -> Ro
|
||||||
|
|
||||||
impl Sink for RodioSink {
|
impl Sink for RodioSink {
|
||||||
fn start(&mut self) -> SinkResult<()> {
|
fn start(&mut self) -> SinkResult<()> {
|
||||||
Ok(self.rodio_sink.play())
|
self.rodio_sink.play();
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn stop(&mut self) -> SinkResult<()> {
|
fn stop(&mut self) -> SinkResult<()> {
|
||||||
self.rodio_sink.sleep_until_end();
|
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<()> {
|
fn write(&mut self, packet: AudioPacket, converter: &mut Converter) -> SinkResult<()> {
|
||||||
|
|
Loading…
Reference in a new issue