chore: reoganize dependencies

This commit is contained in:
Valentin Weber 2025-07-19 16:13:22 +02:00
parent 02001c0630
commit cb6016bdc0
No known key found for this signature in database
GPG key ID: 44797000F143F522
2 changed files with 8 additions and 5 deletions

View file

@ -51,4 +51,3 @@ time = "0.3.41"
toml = { version = "0.9.2", optional = true } toml = { version = "0.9.2", optional = true }
zerocopy = { version = "0.8.26", features = ["derive"] } zerocopy = { version = "0.8.26", features = ["derive"] }
image = "0.25.6" image = "0.25.6"

View file

@ -1,7 +1,7 @@
#![warn(clippy::all, clippy::pedantic)] #![warn(clippy::all, clippy::pedantic)]
#![allow(clippy::unnecessary_debug_formatting)] #![allow(clippy::unnecessary_debug_formatting)]
use std::{fs, fs::File, io::BufReader, path::PathBuf}; use std::{fs, io::BufReader, path::PathBuf};
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use base64::Engine; use base64::Engine;
@ -12,11 +12,15 @@ use embedded_graphics::{
mono_font::{iso_8859_1::FONT_6X9, MonoTextStyle}, mono_font::{iso_8859_1::FONT_6X9, MonoTextStyle},
pixelcolor::BinaryColor, pixelcolor::BinaryColor,
text::Text, text::Text,
Drawable, Pixel, Drawable,
Pixel,
}; };
use serde::Deserialize; use serde::Deserialize;
use image::{ use image::{
codecs::gif::GifDecoder, imageops::FilterType, AnimationDecoder, ImageReader, Pixel as iPixel, AnimationDecoder,
codecs::gif::GifDecoder,
imageops::FilterType,
ImageReader, Pixel as ImagePixel,
}; };
use badgemagic::{ use badgemagic::{
@ -246,7 +250,7 @@ fn generate_payload(args: &mut Args) -> Result<PayloadBuffer> {
} }
} }
Content::GifFile { gif_file } => { Content::GifFile { gif_file } => {
let file_in = BufReader::new(File::open(gif_file)?); let file_in = BufReader::new(fs::File::open(gif_file)?);
let frames = GifDecoder::new(file_in)? let frames = GifDecoder::new(file_in)?
.into_frames() .into_frames()
.collect_frames() .collect_frames()