Make self parameter to has_credit non-mutable

This commit is contained in:
Daniel Bevenius 2022-09-17 09:06:23 +02:00
parent e727fe8675
commit 520860622b

View file

@ -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
}