diff --git a/src/main.rs b/src/main.rs index f1cb50f..d6a81e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,6 @@ mod screenshot; mod settings; mod state; -use std::io::Cursor; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; diff --git a/src/screenshot.rs b/src/screenshot.rs index 1955b82..a2397b3 100644 --- a/src/screenshot.rs +++ b/src/screenshot.rs @@ -403,7 +403,7 @@ mod ffi { let mut pixels: Vec = Vec::with_capacity((width * height) as usize); for row_i in (0..height as usize).rev() { - for byte_i in (0..width as usize) { + for byte_i in 0..width as usize { let idx = row_i * row_len + byte_i * pixel_width; pixels.push(Pixel { b: data[idx],