From 18a6746ac05c0079c97ad96f49facf6feb5a3c82 Mon Sep 17 00:00:00 2001 From: Mateusz Kijowski Date: Fri, 22 Mar 2019 01:41:02 +0100 Subject: [PATCH] Remove unnecessary comments, fix typo --- playback/src/audio_backend/sdl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playback/src/audio_backend/sdl.rs b/playback/src/audio_backend/sdl.rs index 707359cc..71d19e50 100644 --- a/playback/src/audio_backend/sdl.rs +++ b/playback/src/audio_backend/sdl.rs @@ -13,7 +13,7 @@ impl Open for SdlSink { debug!("Using SDL sink"); if device.is_some() { - panic!("SDL sink does not support specifyng a device name"); + panic!("SDL sink does not support specifying a device name"); } let ctx = sdl2::init().expect("Could not init SDL"); @@ -22,7 +22,7 @@ impl Open for SdlSink { let desired_spec = AudioSpecDesired { freq: Some(44_100), channels: Some(2), - samples: None, // default + samples: None, }; let queue = audio .open_queue(None, &desired_spec) @@ -34,7 +34,7 @@ impl Open for SdlSink { impl Sink for SdlSink { fn start(&mut self) -> io::Result<()> { - self.queue.clear(); // + self.queue.clear(); self.queue.resume(); Ok(()) }