mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
Apply suggestions from code review
Co-authored-by: Will Greenberg <willg@eff.org>
This commit is contained in:
@@ -3,7 +3,6 @@ use std::{io::Cursor, time::Duration};
|
||||
|
||||
const FB_PATH:&str = "/dev/fb0";
|
||||
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
// TODO actually poll for this, maybe w/ fbset?
|
||||
struct Dimensions {
|
||||
@@ -37,7 +36,6 @@ impl Framebuffer<'_>{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fn write(&mut self, img: DynamicImage) {
|
||||
let mut width = img.width();
|
||||
let mut height = img.height();
|
||||
@@ -64,7 +62,6 @@ impl Framebuffer<'_>{
|
||||
std::fs::write(self.path, &buf).unwrap();
|
||||
}
|
||||
|
||||
|
||||
pub fn draw_gif(&mut self, img_buffer: &[u8]) {
|
||||
// this is dumb and i'm sure there's a better way to loop this
|
||||
let cursor = Cursor::new(img_buffer);
|
||||
|
||||
Reference in New Issue
Block a user