From 8867c5c9f1da050aa125a74b264dfd0f34e11901 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Fri, 4 Jun 2021 19:43:09 +0100 Subject: [PATCH] satisfy linter --- agb/src/display/object.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index aaaee39b..da43f3c0 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -276,7 +276,7 @@ impl ObjectControl { fn get_unused_object_index(&self) -> u8 { let mut objects = self.objects.borrow_mut(); for index in 0..128 { - if objects.get(index).unwrap() == false { + if !objects.get(index).unwrap() { objects.set(index, true); return index as u8; } @@ -287,7 +287,7 @@ impl ObjectControl { fn get_unused_affine_index(&self) -> u8 { let mut affines = self.affines.borrow_mut(); for index in 0..32 { - if affines.get(index).unwrap() == false { + if !affines.get(index).unwrap() { affines.set(index, true); return index as u8; }