Lint: Clippy warning cleanup (#8)
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user