clippy fixes
This commit is contained in:
parent
18f0e1eca5
commit
9b83a39018
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue