Skip to content

Commit

Permalink
NFC: Address a Clippy lint in limbs_mul.
Browse files Browse the repository at this point in the history
This isn't caught by `mk/clippy.sh` usually since this code isn't used
for x86-64 targets yet.
  • Loading branch information
briansmith committed Nov 11, 2023
1 parent 61d1da6 commit 75cbe47
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/arithmetic/montgomery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,7 @@ fn limbs_mul(r: &mut [Limb], a: &[Limb], b: &[Limb]) {
r[..ab_len].fill(0);
for (i, &b_limb) in b.iter().enumerate() {
r[ab_len + i] = unsafe {
limbs_mul_add_limb(
(&mut r[i..][..ab_len]).as_mut_ptr(),
a.as_ptr(),
b_limb,
ab_len,
)
limbs_mul_add_limb(r[i..][..ab_len].as_mut_ptr(), a.as_ptr(), b_limb, ab_len)
};
}
}
Expand Down

0 comments on commit 75cbe47

Please sign in to comment.