mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
clippy: Allow binary operators in Mul impls for curves
We use binary operators specifically to implement constant-time scalar multiplication.
This commit is contained in:
parent
a3921fd38c
commit
901ef2381e
2 changed files with 2 additions and 1 deletions
|
|
@ -427,6 +427,7 @@ macro_rules! new_curve_impl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::suspicious_arithmetic_impl)]
|
||||||
impl<'a, 'b> Mul<&'b $scalar> for &'a $name {
|
impl<'a, 'b> Mul<&'b $scalar> for &'a $name {
|
||||||
type Output = $name;
|
type Output = $name;
|
||||||
|
|
||||||
|
|
@ -537,6 +538,7 @@ macro_rules! new_curve_impl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::suspicious_arithmetic_impl)]
|
||||||
impl<'a, 'b> Mul<&'b $scalar> for &'a $name_affine {
|
impl<'a, 'b> Mul<&'b $scalar> for &'a $name_affine {
|
||||||
type Output = $name;
|
type Output = $name;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::op_ref,
|
clippy::op_ref,
|
||||||
clippy::suspicious_arithmetic_impl,
|
|
||||||
clippy::same_item_push,
|
clippy::same_item_push,
|
||||||
clippy::upper_case_acronyms,
|
clippy::upper_case_acronyms,
|
||||||
clippy::unknown_clippy_lints
|
clippy::unknown_clippy_lints
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue