Skip to content

Commit

Permalink
Remove to_string() call in favor of Display
Browse files Browse the repository at this point in the history
  • Loading branch information
Beinsezii committed Dec 17, 2023
1 parent 9f38140 commit eab6938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit eab6938

Please sign in to comment.