mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 01:21:34 +11:00
satisfy linter
This commit is contained in:
parent
1c779e3c31
commit
8867c5c9f1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue