satisfy linter

This commit is contained in:
Corwin Kuiper 2021-06-06 11:10:57 +01:00 committed by Corwin
parent 20c06536e4
commit b0c4a8fd80

View file

@ -238,7 +238,6 @@ impl ObjectAttribute {
} }
impl AffineMatrix<'_> { impl AffineMatrix<'_> {
#[allow(clippy::identity_op)]
/// Commits matrix to OAM, will cause any objects using this matrix to be updated. /// Commits matrix to OAM, will cause any objects using this matrix to be updated.
pub fn commit(&self) { pub fn commit(&self) {
unsafe { self.attributes.commit(self.loan.index) }; unsafe { self.attributes.commit(self.loan.index) };
@ -246,6 +245,7 @@ impl AffineMatrix<'_> {
} }
impl AffineMatrixAttributes { impl AffineMatrixAttributes {
#[allow(clippy::identity_op)]
unsafe fn commit(&self, index: u8) { unsafe fn commit(&self, index: u8) {
let index = index as usize * 4; let index = index as usize * 4;
OBJECT_ATTRIBUTE_MEMORY.set((index + 0) * 4 + 3, self.p_a as u16); OBJECT_ATTRIBUTE_MEMORY.set((index + 0) * 4 + 3, self.p_a as u16);