From b1c94f28e984f000894091d5180602c4e3c2cfaf Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Mon, 31 Oct 2022 21:09:51 +0100 Subject: [PATCH] Fixed warning --- examples/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/text.rs b/examples/text.rs index ffe6d73..ddd6a3a 100644 --- a/examples/text.rs +++ b/examples/text.rs @@ -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 {