remove no longer required #[allow(clippy::mutable_key_type)] (#6210)

* remove no longer required clippy::mutable_key_type lint
This commit is contained in:
João Oliveira
2024-08-01 01:26:26 +01:00
committed by GitHub
parent c7ded10870
commit d9f8b13e36
3 changed files with 0 additions and 6 deletions

View File

@@ -5,7 +5,6 @@
mod config;
pub mod service;
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy
pub mod discovery;
pub mod listen_addr;
pub mod metrics;

View File

@@ -23,7 +23,6 @@ use types::{EthSpec, SyncSubnetId};
pub use libp2p::core::Multiaddr;
pub use libp2p::identity::Keypair;
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy
pub mod peerdb;
use crate::peer_manager::peerdb::client::ClientKind;
@@ -320,7 +319,6 @@ impl<E: EthSpec> PeerManager<E> {
/// returned here.
///
/// This function decides whether or not to dial these peers.
#[allow(clippy::mutable_key_type)]
pub fn peers_discovered(&mut self, results: HashMap<Enr, Option<Instant>>) {
let mut to_dial_peers = 0;
let connected_or_dialing = self.network_globals.connected_or_dialing_peers();