diff --git a/app/src/main.rs b/app/src/main.rs index 59e78fc..935f996 100644 --- a/app/src/main.rs +++ b/app/src/main.rs @@ -83,7 +83,9 @@ fn main() { // for i in 0..25 { let start_time = Instant::now(); - scaler.resize_rgba_u16(&store, &mut dst_store, true).unwrap(); + scaler + .resize_rgba_u16(&store, &mut dst_store, true) + .unwrap(); let elapsed_time = start_time.elapsed(); // Print the elapsed time in milliseconds diff --git a/src/alpha_handle_f32.rs b/src/alpha_handle_f32.rs index e1e05bd..1b3b03a 100644 --- a/src/alpha_handle_f32.rs +++ b/src/alpha_handle_f32.rs @@ -131,8 +131,16 @@ pub(crate) fn premultiply_alpha_rgba_f32( height: usize, pool: &Option, ) { - let mut _dispatcher: fn(&mut [f32], usize, &[f32], usize, usize, usize, &Option) = - premultiply_alpha_rgba_impl_f32; + #[allow(clippy::type_complexity)] + let mut _dispatcher: fn( + &mut [f32], + usize, + &[f32], + usize, + usize, + usize, + &Option, + ) = premultiply_alpha_rgba_impl_f32; #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _dispatcher = neon_premultiply_alpha_rgba_f32;