Fix clippy warning

This commit is contained in:
Gwilym Kuiper 2021-06-06 14:17:08 +01:00
parent e181f7a751
commit 3f3b34c250

View file

@ -39,7 +39,7 @@ impl Mixer {
let mut has_finished = false; let mut has_finished = false;
if let Some(some_channel) = channel { if let Some(some_channel) = channel {
self.buffer.write_channel(&some_channel); self.buffer.write_channel(some_channel);
some_channel.pos += SOUND_BUFFER_SIZE; some_channel.pos += SOUND_BUFFER_SIZE;
if some_channel.pos >= some_channel.data.len() { if some_channel.pos >= some_channel.data.len() {