Clean up minor code quality issues

This commit is contained in:
2026-03-08 00:22:24 +02:00
parent 96f6973d39
commit 388670964a
6 changed files with 97 additions and 133 deletions

View File

@@ -2,11 +2,11 @@ use std::path::{Path, PathBuf};
use walkdir::WalkDir;
const IMAGE_EXTENSIONS: &[&str] = &[
pub const IMAGE_EXTENSIONS: &[&str] = &[
"jpg", "jpeg", "png", "webp", "avif", "gif", "tiff", "tif", "bmp",
];
fn is_image_extension(ext: &str) -> bool {
pub fn is_image_extension(ext: &str) -> bool {
IMAGE_EXTENSIONS.contains(&ext.to_lowercase().as_str())
}