Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jan 7, 2025
1 parent 39cd41c commit 6684e73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions src/alpha_handle_f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,16 @@ pub(crate) fn premultiply_alpha_rgba_f32(
height: usize,
pool: &Option<ThreadPool>,
) {
let mut _dispatcher: fn(&mut [f32], usize, &[f32], usize, usize, usize, &Option<ThreadPool>) =
premultiply_alpha_rgba_impl_f32;
#[allow(clippy::type_complexity)]
let mut _dispatcher: fn(
&mut [f32],
usize,
&[f32],
usize,
usize,
usize,
&Option<ThreadPool>,
) = premultiply_alpha_rgba_impl_f32;
#[cfg(all(target_arch = "aarch64", target_feature = "neon"))]
{
_dispatcher = neon_premultiply_alpha_rgba_f32;
Expand Down

0 comments on commit 6684e73

Please sign in to comment.