Skip to content

Commit

Permalink
Fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke committed Jul 13, 2024
1 parent 79f7687 commit 2ec94fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helmholtz_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ pub fn assemble_helmholtz_one_target<T: RlstScalar<Complex = T>>(
let result: &mut [[T::Real; 2]] = bytemuck::cast_slice_mut(result);
let (result_head, result_tail) = <T::Real>::as_simd_slice_from_vec_mut(result);

#[allow(clippy::too_many_arguments)]
fn impl_slice<T: RlstScalar<Complex = T>, S: pulp::Simd>(
simd: S,
m_inv_4pi: T::Real,
Expand Down Expand Up @@ -1228,6 +1229,7 @@ pub fn assemble_helmholtz_one_target<T: RlstScalar<Complex = T>>(
let result: &mut [[T::Real; 8]] = bytemuck::cast_slice_mut(result);
let (result_head, result_tail) = <T::Real>::as_simd_slice_from_vec_mut(result);

#[allow(clippy::too_many_arguments)]
fn impl_slice<T: RlstScalar<Complex = T>, S: pulp::Simd>(
simd: S,
m_inv_4pi: T::Real,
Expand Down
2 changes: 2 additions & 0 deletions src/modified_helmholtz_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ pub fn assemble_modified_helmholtz_one_target<T: RlstScalar>(
let (sources_head, sources_tail) = T::as_simd_slice_from_vec(sources);
let (result_head, result_tail) = T::as_simd_slice_mut(result);

#[allow(clippy::too_many_arguments)]
fn impl_slice<T: RlstScalar<Real = T> + RlstSimd, S: pulp::Simd>(
simd: S,
m_inv_4pi: T,
Expand Down Expand Up @@ -968,6 +969,7 @@ pub fn assemble_modified_helmholtz_one_target<T: RlstScalar>(
let (result, _) = pulp::as_arrays_mut::<4, T>(result);
let (result_head, result_tail) = T::as_simd_slice_from_vec_mut::<_, 4>(result);

#[allow(clippy::too_many_arguments)]
fn impl_slice<T: RlstScalar<Real = T> + RlstSimd, S: pulp::Simd>(
simd: S,
m_inv_4pi: T,
Expand Down

0 comments on commit 2ec94fb

Please sign in to comment.