Fix clippy lints

This commit is contained in:
Jack Grigg 2021-06-01 23:34:22 +01:00
parent bc20c5826b
commit 38db112596
2 changed files with 3 additions and 8 deletions

View file

@ -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(&gtab_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;

View file

@ -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)]