bugfix: correct typing

This commit is contained in:
Baipyrus 2024-05-07 11:35:48 +02:00
parent ef52dcfd7d
commit b33ca620b0

View File

@ -41,7 +41,7 @@ pub fn display_grid(grid: &Vec<Vec<Cell>>) {
let y = j as usize;
let state = grid[x][y].state as usize;
let index = map_num(state, 0, Q, 0, BRIGHTNESS.len());
let index = map_num(state, 0, Q as usize, 0, BRIGHTNESS.len());
print!("{}", BRIGHTNESS.chars().nth(index).unwrap());
}
println!();