From 520860622b5d42471c58a041ae37337cb92e3fc9 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sat, 17 Sep 2022 09:06:23 +0200 Subject: [PATCH] Make self parameter to has_credit non-mutable --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4baaaa51..d09be506 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -938,7 +938,7 @@ where } } - fn has_credit(&mut self) -> bool { + fn has_credit(&self) -> bool { self.sdpcm_seq != self.sdpcm_seq_max && self.sdpcm_seq_max.wrapping_sub(self.sdpcm_seq) & 0x80 == 0 }