From b0c4a8fd80437db002a513916ee884c495251873 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Sun, 6 Jun 2021 11:10:57 +0100 Subject: [PATCH] satisfy linter --- agb/src/display/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index bddc28d2..38afa8d9 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -238,7 +238,6 @@ impl ObjectAttribute { } impl AffineMatrix<'_> { - #[allow(clippy::identity_op)] /// Commits matrix to OAM, will cause any objects using this matrix to be updated. pub fn commit(&self) { unsafe { self.attributes.commit(self.loan.index) }; @@ -246,6 +245,7 @@ impl AffineMatrix<'_> { } impl AffineMatrixAttributes { + #[allow(clippy::identity_op)] unsafe fn commit(&self, index: u8) { let index = index as usize * 4; OBJECT_ATTRIBUTE_MEMORY.set((index + 0) * 4 + 3, self.p_a as u16);