From 025f4f5a91886ab3b7c5c342c567883dcf7ff6aa Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Fri, 25 Jun 2021 22:18:40 +0100 Subject: [PATCH] Fix clippy lints by removing lifetimes --- agb/src/sound/mixer/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agb/src/sound/mixer/mod.rs b/agb/src/sound/mixer/mod.rs index f9e0dc90..f9e210b1 100644 --- a/agb/src/sound/mixer/mod.rs +++ b/agb/src/sound/mixer/mod.rs @@ -65,17 +65,17 @@ impl SoundChannel { } } - pub fn should_loop<'a>(&'a mut self) -> &'a mut Self { + pub fn should_loop(&mut self) -> &mut Self { self.should_loop = true; self } - pub fn playback<'a>(&'a mut self, playback_speed: Num) -> &'a mut Self { + pub fn playback(&mut self, playback_speed: Num) -> &mut Self { self.playback_speed = playback_speed; self } - pub fn panning<'a>(&'a mut self, panning: Num) -> &'a mut Self { + pub fn panning(&mut self, panning: Num) -> &mut Self { debug_assert!(panning >= Num::new(-1), "panning value must be >= -1"); debug_assert!(panning <= Num::new(1), "panning value must be <= 1"); @@ -83,7 +83,7 @@ impl SoundChannel { self } - pub fn volume<'a>(&'a mut self, volume: Num) -> &'a mut Self { + pub fn volume(&mut self, volume: Num) -> &mut Self { assert!(volume <= Num::new(1), "volume must be <= 1"); assert!(volume >= Num::new(0), "volume must be >= 0");