Fix Rust 1.69 lints (#4222)

## Issue Addressed

N/A

## Proposed Changes

Fixes lints mostly `extra-unused-type-parameters` https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_paramete
This commit is contained in:
Pawan Dhananjay
2023-04-21 18:29:28 +00:00
parent ed7824869c
commit a78285db5e
6 changed files with 22 additions and 27 deletions

View File

@@ -403,7 +403,7 @@ impl ValidatorsListTreeHashCache {
validators.len(),
),
list_arena,
values: ParallelValidatorTreeHash::new::<E>(validators),
values: ParallelValidatorTreeHash::new(validators),
}
}
@@ -468,7 +468,7 @@ impl ParallelValidatorTreeHash {
///
/// Allocates the necessary memory to store all of the cached Merkle trees but does perform any
/// hashing.
fn new<E: EthSpec>(validators: &[Validator]) -> Self {
fn new(validators: &[Validator]) -> Self {
let num_arenas = std::cmp::max(
1,
(validators.len() + VALIDATORS_PER_ARENA - 1) / VALIDATORS_PER_ARENA,