diff --git a/crates/engine-core/src/cmd/gradient_fill_mode_refusal_tests.rs b/crates/engine-core/src/cmd/gradient_fill_mode_refusal_tests.rs index e1d709f9672..7cfaeb381c0 100644 --- a/crates/engine-core/src/cmd/gradient_fill_mode_refusal_tests.rs +++ b/crates/engine-core/src/cmd/gradient_fill_mode_refusal_tests.rs @@ -19,14 +19,8 @@ fn drag() -> Value { #[test] fn unsupported_modes_refuse_without_changing_the_document() { let cases = [ - ( - ColorMode::Indexed, - "Could not use the gradient tool because it does not work with Indexed Color images (convert image to RGB Color mode to edit).", - ), - ( - ColorMode::Bitmap, - "Could not use the gradient tool because it does not work with Bitmap images (convert image to Grayscale mode to edit).", - ), + (ColorMode::Indexed, "Could not use the gradient tool because it does not work with Indexed Color images (convert image to RGB Color mode to edit)."), + (ColorMode::Bitmap, "Could not use the gradient tool because it does not work with Bitmap images (convert image to Grayscale mode to edit)."), ( ColorMode::Multichannel, "Could not use the gradient tool because it does not work with Multichannel images (convert image to RGB Color mode to edit).", @@ -60,19 +54,8 @@ fn other_modes_keep_creating_gradient_fill_layers() { use ColorMode::{Cmyk, Duotone, Grayscale, Lab, Rgb}; use SampleType::{F32, U8, U16}; - let cases = [ - (Rgb, U8), - (Rgb, U16), - (Rgb, F32), - (Grayscale, U8), - (Grayscale, U16), - (Grayscale, F32), - (Cmyk, U8), - (Cmyk, U16), - (Lab, U8), - (Lab, U16), - (Duotone, U8), - ]; + let cases = + [(Rgb, U8), (Rgb, U16), (Rgb, F32), (Grayscale, U8), (Grayscale, U16), (Grayscale, F32), (Cmyk, U8), (Cmyk, U16), (Lab, U8), (Lab, U16), (Duotone, U8)]; for (mode, depth) in cases { let mut session = session(mode, depth);