From 3f3b34c250a70c71e719a5d7449410b46b40505c Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 6 Jun 2021 14:17:08 +0100 Subject: [PATCH] Fix clippy warning --- agb/src/sound/mixer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/sound/mixer.rs b/agb/src/sound/mixer.rs index ba70a2b6..a49c68bd 100644 --- a/agb/src/sound/mixer.rs +++ b/agb/src/sound/mixer.rs @@ -39,7 +39,7 @@ impl Mixer { let mut has_finished = false; if let Some(some_channel) = channel { - self.buffer.write_channel(&some_channel); + self.buffer.write_channel(some_channel); some_channel.pos += SOUND_BUFFER_SIZE; if some_channel.pos >= some_channel.data.len() {