From 30937acd35f32689a9eac41e4906d782ae304c2b Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:30:21 -0500 Subject: [PATCH] chore: fix clippy but gave up --- src/derive/field.rs | 1 + src/ff_ext/jacobi.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/derive/field.rs b/src/derive/field.rs index 5faee345..31f19195 100644 --- a/src/derive/field.rs +++ b/src/derive/field.rs @@ -63,6 +63,7 @@ macro_rules! field_common { $crate::ff_ext::jacobi::jacobi::<5>(&self.0, &$modulus.0) } + #[allow(dead_code)] const fn montgomery_form(val: [u64; 4], r: $field) -> $field { // Converts a 4 64-bit limb value into its congruent field representation. // If `val` representes a 256 bit value then `r` should be R^2, diff --git a/src/ff_ext/jacobi.rs b/src/ff_ext/jacobi.rs index 8c559352..a8d9d059 100644 --- a/src/ff_ext/jacobi.rs +++ b/src/ff_ext/jacobi.rs @@ -219,6 +219,7 @@ impl Mul for &LInt { } else { (other as u64, 0, 0) }; + #[allow(clippy::needless_range_loop)] for i in 0..L { (data[i], carry) = Self::Output::prodsum(self.0[i] ^ mask, other, 0, carry); }