Skip to content

Commit

Permalink
clippy::unused_self
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersTrier committed Nov 22, 2024
1 parent 150021b commit e94ea0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engine/engine_avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Avx2 {
impl Avx2 {
// Implementation of LEO_FFTB_256
#[inline(always)]
fn fftb_256(&self, x: &mut [u8; 64], y: &mut [u8; 64], lut_avx2: LutAvx2) {
fn fftb_256(x: &mut [u8; 64], y: &mut [u8; 64], lut_avx2: LutAvx2) {
let x_ptr = x.as_mut_ptr().cast::<__m256i>();
let y_ptr = y.as_mut_ptr().cast::<__m256i>();

Expand Down Expand Up @@ -242,7 +242,7 @@ impl Avx2 {
let lut_avx2 = LutAvx2::from(lut);

for (x_chunk, y_chunk) in zip(x.iter_mut(), y.iter_mut()) {
self.fftb_256(x_chunk, y_chunk, lut_avx2);
Self::fftb_256(x_chunk, y_chunk, lut_avx2);
}
}

Expand Down Expand Up @@ -355,7 +355,7 @@ impl Avx2 {
impl Avx2 {
// Implementation of LEO_IFFTB_256
#[inline(always)]
fn ifftb_256(&self, x: &mut [u8; 64], y: &mut [u8; 64], lut_avx2: LutAvx2) {
fn ifftb_256(x: &mut [u8; 64], y: &mut [u8; 64], lut_avx2: LutAvx2) {
let x_ptr = x.as_mut_ptr().cast::<__m256i>();
let y_ptr = y.as_mut_ptr().cast::<__m256i>();

Expand Down Expand Up @@ -385,7 +385,7 @@ impl Avx2 {
let lut_avx2 = LutAvx2::from(lut);

for (x_chunk, y_chunk) in zip(x.iter_mut(), y.iter_mut()) {
self.ifftb_256(x_chunk, y_chunk, lut_avx2);
Self::ifftb_256(x_chunk, y_chunk, lut_avx2);
}
}

Expand Down

0 comments on commit e94ea0b

Please sign in to comment.