From 9b7bfb0562b3615d4acca0ebe71a3575ece05328 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 2 Apr 2022 18:49:04 +0200 Subject: [PATCH] fw-rust: Improve readability --- firmware/rust/src/lcd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/rust/src/lcd.rs b/firmware/rust/src/lcd.rs index 414c954..4d25a18 100644 --- a/firmware/rust/src/lcd.rs +++ b/firmware/rust/src/lcd.rs @@ -151,7 +151,7 @@ impl Lcd { assert!(digits <= 3); let mut delay = Delay::::new(); - let mut array = [0usize; 3]; + let mut array = [0_usize; 3]; for (i, item) in array.iter_mut().enumerate() { *item = (((data / 10_u8.pow(i.try_into().unwrap())) % 10) + 2).into(); }