From eab6938e24240bbfca044ad086ab594c8a3ff62d Mon Sep 17 00:00:00 2001 From: Beinsezii Date: Sat, 16 Dec 2023 16:41:56 -0800 Subject: [PATCH] Remove to_string() call in favor of Display --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4d2c46a..f941e95 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -344,7 +344,7 @@ pub fn convert_space_chunked(from: Space, to: Space, pixels: &mut [[f32; 3]]) { pixels.iter_mut().for_each(|pixel| xyz_to_oklab(pixel)); convert_space_chunked(Space::OKLAB, to, pixels) } - _ => unreachable!("XYZ tried to promote to {}", to.to_string()), + _ => unreachable!("XYZ tried to promote to {}", to), }, Space::LAB => pixels.iter_mut().for_each(|pixel| lab_to_lch(pixel)), Space::OKLAB => pixels.iter_mut().for_each(|pixel| lab_to_lch(pixel)),