diff --git a/src/arithmetic/fields.rs b/src/arithmetic/fields.rs index 664aade..2d774f6 100644 --- a/src/arithmetic/fields.rs +++ b/src/arithmetic/fields.rs @@ -219,8 +219,8 @@ impl SqrtTables { // Now invert gtab[3]. let mut inv: Vec = 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; diff --git a/src/lib.rs b/src/lib.rs index b48409d..6247a17 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)]