range refactor, clippy

This commit is contained in:
Vinzenz Schroeter 2025-07-08 20:01:39 +02:00
commit 0bf317dd6d
6 changed files with 35 additions and 57 deletions

View file

@ -40,12 +40,8 @@ fn main() {
chars.fill('\0');
pixels.fill(false);
let chars_view = chars
.window_mut(0, 0, chars.width(), chars.height())
.unwrap();
let pixels_view = pixels
.window_mut(0, 0, pixels.width(), pixels.height())
.unwrap();
let chars_view = chars.window_mut(.., ..).unwrap();
let pixels_view = pixels.window_mut(.., ..).unwrap();
state.draw(chars_view, pixels_view);
connection.send_command(&bitmap_cmd).unwrap();