style(*): code clean

This commit is contained in:
ZhuJHua
2025-01-06 23:59:36 +08:00
parent f871cb66ee
commit 41160ae27f
2 changed files with 1 additions and 5 deletions

View File

@@ -23,8 +23,7 @@ pub fn compress(
compress_format: CompressFormat,
quality: u8,
) -> Result<Vec<u8>> {
// 创建一个待填充的图片
let pixel_type = img.pixel_type().unwrap(); // 获取像素类型
let pixel_type = img.pixel_type().unwrap();
let mut dst_image = Image::new(dst_width, dst_height, pixel_type);
let mut resizer = Resizer::new();

View File

@@ -1,9 +1,6 @@
#[derive(PartialEq, Eq)]
pub enum CompressFormat {
Jpeg,
WebP,
Png,
}