clippy fixes

This commit is contained in:
Tim Schubert 2024-12-28 02:38:08 +01:00
parent 18f0e1eca5
commit 9b83a39018
Signed by: dadada
SSH key fingerprint: SHA256:bFAjFH3hR8zRBaJjzQDjc3o4jqoq5EZ87l+KXEjxIz0

View file

@ -81,8 +81,7 @@ impl Life {
&& self[i as usize][j as usize]
})
.count();
future[row][column] =
(*alive && (neighbors == 2 || neighbors == 3)) || (!*alive && neighbors == 3);
future[row][column] = neighbors == 3 || *alive && neighbors == 2;
})
});
future
@ -133,7 +132,7 @@ const RENDER_DELAY: usize = 100_000;
fn main() -> Status {
uefi::helpers::init().unwrap();
let mut life = Life::with_starter(&BREEDER);
let mut life = Life::with_starter(BREEDER);
for _ in repeat(()) {
life = life.play();