Merge pull request #18 from danbev/has_credit

Make self parameter to has_credit non-mutable
This commit is contained in:
Dario Nieuwenhuis 2022-09-18 20:57:23 +02:00 committed by GitHub
commit e7d30194e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}