Beta compiler fixes (#5543)

* remove duplicate imports in gossip tests. get rid of duplicate trait bound locations

* more double import fixes

* cargo fmt
This commit is contained in:
realbigsean
2024-04-10 03:47:05 -04:00
committed by GitHub
parent b74da14261
commit d527d124dd
9 changed files with 8 additions and 19 deletions

View File

@@ -721,7 +721,7 @@ impl<E: EthSpec> OperationPool<E> {
}
/// Filter up to a maximum number of operations out of an iterator.
fn filter_limit_operations<'a, T: 'a, V: 'a, I, F, G>(
fn filter_limit_operations<'a, T, V: 'a, I, F, G>(
operations: I,
filter: F,
mapping: G,
@@ -731,7 +731,7 @@ where
I: IntoIterator<Item = &'a T>,
F: Fn(&T) -> bool,
G: Fn(&T) -> V,
T: Clone,
T: Clone + 'a,
{
operations
.into_iter()