Fix clippy lints

This commit is contained in:
Ian Douglas Scott 2022-12-21 16:48:33 -08:00 committed by Jeremy Soller
parent f193f10ec0
commit b0d6ffbf17
4 changed files with 15 additions and 19 deletions

View file

@ -31,10 +31,10 @@ fn main() {
match event {
Event::RedrawRequested(window_id) if window_id == window.id() => {
let buffer = (0..((BUFFER_WIDTH * BUFFER_HEIGHT) as usize))
let buffer = (0..(BUFFER_WIDTH * BUFFER_HEIGHT))
.map(|index| {
let y = index / (BUFFER_WIDTH as usize);
let x = index % (BUFFER_WIDTH as usize);
let y = index / BUFFER_WIDTH;
let x = index % BUFFER_WIDTH;
let red = x % 255;
let green = y % 255;
let blue = (x * y) % 255;