From c2a4845a2e6ad87ad8961ec489c7b5762ea66c73 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 21 Jul 2022 20:34:26 +0100 Subject: [PATCH] Add a must_use to pos --- agb/src/sound/mixer/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/agb/src/sound/mixer/mod.rs b/agb/src/sound/mixer/mod.rs index dda398e1..ac01dba7 100644 --- a/agb/src/sound/mixer/mod.rs +++ b/agb/src/sound/mixer/mod.rs @@ -378,6 +378,7 @@ impl SoundChannel { /// Gets how far along the sound has played. #[inline] + #[must_use] pub fn pos(&self) -> Num { self.pos }