mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-06 20:20:34 +00:00
clippy: Allow too-many-arguments on F*::montgomery_reduce
We need to reduce from eight limbs to four, so we need eight arguments.
This commit is contained in:
parent
c13fc16ead
commit
a3921fd38c
3 changed files with 2 additions and 1 deletions
|
|
@ -307,6 +307,7 @@ impl Fp {
|
||||||
Fp::montgomery_reduce(r0, r1, r2, r3, r4, r5, r6, r7)
|
Fp::montgomery_reduce(r0, r1, r2, r3, r4, r5, r6, r7)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
const fn montgomery_reduce(
|
const fn montgomery_reduce(
|
||||||
r0: u64,
|
r0: u64,
|
||||||
|
|
|
||||||
|
|
@ -307,6 +307,7 @@ impl Fq {
|
||||||
Fq::montgomery_reduce(r0, r1, r2, r3, r4, r5, r6, r7)
|
Fq::montgomery_reduce(r0, r1, r2, r3, r4, r5, r6, r7)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
const fn montgomery_reduce(
|
const fn montgomery_reduce(
|
||||||
r0: u64,
|
r0: u64,
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::op_ref,
|
clippy::op_ref,
|
||||||
clippy::too_many_arguments,
|
|
||||||
clippy::suspicious_arithmetic_impl,
|
clippy::suspicious_arithmetic_impl,
|
||||||
clippy::same_item_push,
|
clippy::same_item_push,
|
||||||
clippy::upper_case_acronyms,
|
clippy::upper_case_acronyms,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue