From 6ab37cb7a1c06c877f7e3c8bb4a2b4c10a95c1a2 Mon Sep 17 00:00:00 2001 From: Vladyslav Vladinov Date: Thu, 4 Jul 2024 16:27:59 +0200 Subject: [PATCH] style: :art: fixed clippy issues --- Cargo.toml | 2 +- src/codecs/tiff/decoder/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d0169264..c110039d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ path = "./src/main.rs" required-features = ["build-binary"] [features] -default = ["resize", "quantization", "mozjpeg", "oxipng", "webp", "avif","tiff", "threads", "metadata"] +default = ["resize", "quantization", "mozjpeg", "oxipng", "webp", "avif", "tiff", "threads", "metadata"] # Used for binary build-binary = ["dep:anyhow", "dep:clap", "dep:indoc", "dep:rayon", "dep:pretty_env_logger", "dep:zune-imageprocs", "dep:glob", "zune-image/default"] diff --git a/src/codecs/tiff/decoder/mod.rs b/src/codecs/tiff/decoder/mod.rs index e06efa4b..785e4802 100644 --- a/src/codecs/tiff/decoder/mod.rs +++ b/src/codecs/tiff/decoder/mod.rs @@ -69,9 +69,9 @@ where tiff::decoder::DecodingResult::F32(data) => { Ok(Image::from_f32(&data, width, height, colorspace)) } - _ => Err(ImageErrors::ImageDecodeErrors(format!( - "Tiff Data format not supported" - ))), + _ => Err(ImageErrors::ImageDecodeErrors( + "Tiff Data format not supported".to_string(), + )), } }