diff --git a/src/color.rs b/src/color.rs index 3b412611..8672f124 100644 --- a/src/color.rs +++ b/src/color.rs @@ -108,10 +108,9 @@ pub fn rgb888_to_rgb1555_scalar(rgb888_pixels: &[u8], rgb1555_pixels: &mut [u8]) /// `rgb1555_pixels` must be a multiple of 2. #[cfg(feature = "simd")] pub fn rgb888_to_rgb1555_simd(rgb888_pixels: &[u8], rgb1555_pixels: &mut [u8]) { + use boytacean_common::util::interleave_arrays; use std::simd::u8x16; - use crate::util::interleave_arrays; - const SIMD_WIDTH: usize = 16; assert!(