Fix Rust 1.71.0 warnings (#4348)

## Issue Addressed

The Rust 1.70 release is imminent, so CI is using 1.71 for the Beta compiler, which is failing with a warning.
This commit is contained in:
Michael Sproul 2023-05-30 01:38:51 +00:00
parent a7da331f6a
commit baad729fa7

View File

@ -1266,7 +1266,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
); );
} }
let mut score_peers: &mut (f64, usize) = avg_score_per_client let score_peers: &mut (f64, usize) = avg_score_per_client
.entry(peer_info.client().kind.to_string()) .entry(peer_info.client().kind.to_string())
.or_default(); .or_default();
score_peers.0 += peer_info.score().score(); score_peers.0 += peer_info.score().score();