mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
rust 1.72 lints (#4659)
This commit is contained in:
@@ -969,6 +969,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
|
||||
|
||||
macro_rules! prune_peers {
|
||||
($filter: expr) => {
|
||||
let filter = $filter;
|
||||
for (peer_id, info) in self
|
||||
.network_globals
|
||||
.peers
|
||||
@@ -976,7 +977,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
|
||||
.worst_connected_peers()
|
||||
.iter()
|
||||
.filter(|(_, info)| {
|
||||
!info.has_future_duty() && !info.is_trusted() && $filter(*info)
|
||||
!info.has_future_duty() && !info.is_trusted() && filter(*info)
|
||||
})
|
||||
{
|
||||
if peers_to_prune.len()
|
||||
|
||||
Reference in New Issue
Block a user