Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
but gave up
  • Loading branch information
jonathanpwang committed Dec 15, 2023
1 parent 48c9a9f commit 30937ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/derive/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/ff_ext/jacobi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ impl<const L: usize> Mul<i64> for &LInt<L> {
} 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);
}
Expand Down

0 comments on commit 30937ac

Please sign in to comment.