mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
Fix clippy lints
This commit is contained in:
parent
bc20c5826b
commit
38db112596
2 changed files with 3 additions and 8 deletions
|
|
@ -219,8 +219,8 @@ impl<F: FieldExt> SqrtTables<F> {
|
|||
|
||||
// Now invert gtab[3].
|
||||
let mut inv: Vec<u8> = vec![1; hash_mod];
|
||||
for j in 0..256 {
|
||||
let hash = hasher.hash(>ab_3[j]);
|
||||
for (j, gtab_3_j) in gtab_3.iter().enumerate() {
|
||||
let hash = hasher.hash(gtab_3_j);
|
||||
// 1 is the last value to be assigned, so this ensures there are no collisions.
|
||||
assert!(inv[hash] == 1);
|
||||
inv[hash] = ((256 - j) & 0xFF) as u8;
|
||||
|
|
|
|||
|
|
@ -2,12 +2,7 @@
|
|||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![allow(unknown_lints)]
|
||||
#![allow(
|
||||
clippy::op_ref,
|
||||
clippy::same_item_push,
|
||||
clippy::upper_case_acronyms,
|
||||
clippy::unknown_clippy_lints
|
||||
)]
|
||||
#![allow(clippy::op_ref, clippy::same_item_push, clippy::upper_case_acronyms)]
|
||||
#![deny(broken_intra_doc_links)]
|
||||
#![deny(missing_debug_implementations)]
|
||||
#![deny(missing_docs)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue