aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Bevenius <[email protected]>2022-09-17 09:06:23 +0200
committerDaniel Bevenius <[email protected]>2022-09-17 09:06:23 +0200
commit520860622b5d42471c58a041ae37337cb92e3fc9 (patch)
treec20d462284ea1a2c6ae6d3299f4e4c799af704db /src
parente727fe8675111218d219f00dc11cf7a70df97b42 (diff)
Make self parameter to has_credit non-mutable
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4baaaa51c..d09be5062 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -938,7 +938,7 @@ where
938 } 938 }
939 } 939 }
940 940
941 fn has_credit(&mut self) -> bool { 941 fn has_credit(&self) -> bool {
942 self.sdpcm_seq != self.sdpcm_seq_max && self.sdpcm_seq_max.wrapping_sub(self.sdpcm_seq) & 0x80 == 0 942 self.sdpcm_seq != self.sdpcm_seq_max && self.sdpcm_seq_max.wrapping_sub(self.sdpcm_seq) & 0x80 == 0
943 } 943 }
944 944