Fixed warning

This commit is contained in:
Daniel Collin 2022-10-31 21:09:51 +01:00
parent e3b05aa0e7
commit b1c94f28e9

View file

@ -112,7 +112,7 @@ impl StatusText {
pub fn draw(&self, screen: &mut [u32], pos: (usize, usize), text: &str) {
let mut x = pos.0;
let mut y = pos.1;
let y = pos.1;
for c in text.chars() {
let mut index = c as usize - ' ' as usize;
if index > MICROKNIGHT_LAYOUT.len() as usize {