Skip to content

Commit

Permalink
Lint: Clippy warning cleanup (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
peppizza authored and FelixMcFelix committed Nov 30, 2020
1 parent 9b43f6c commit 4e131c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,8 @@ impl Input {
/// Mixes the output of this stream into a 20ms stereo audio buffer.
#[inline]
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) {
Some(len) => len,
None => 0,
}
self.add_float_pcm_frame(float_buffer, self.stereo, volume)
.unwrap_or(0)
}

/// Seeks the stream to the given time, if possible.
Expand Down

0 comments on commit 4e131c9

Please sign in to comment.