range refactor, clippy
This commit is contained in:
parent
2a4f92c9b3
commit
0bf317dd6d
6 changed files with 35 additions and 57 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue