Lint: Clippy warning cleanup (#8)

This commit is contained in:
( ͡° ͜ʖ ͡°)
2020-11-16 10:54:29 -05:00
committed by GitHub
parent de652250d8
commit cb7d8cc618

View File

@@ -151,10 +151,8 @@ impl Input {
/// Mixes the output of this stream into a 20ms stereo audio buffer. /// Mixes the output of this stream into a 20ms stereo audio buffer.
#[inline] #[inline]
pub fn mix(&mut self, float_buffer: &mut [f32; STEREO_FRAME_SIZE], volume: f32) -> usize { pub fn mix(&mut self, float_buffer: &mut [f32; STEREO_FRAME_SIZE], volume: f32) -> usize {
match self.add_float_pcm_frame(float_buffer, self.stereo, volume) { self.add_float_pcm_frame(float_buffer, self.stereo, volume)
Some(len) => len, .unwrap_or(0)
None => 0,
}
} }
/// Seeks the stream to the given time, if possible. /// Seeks the stream to the given time, if possible.