From d9f8b13e36dd1612358657e267cc0b0ea6fd5173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveira?= Date: Thu, 1 Aug 2024 01:26:26 +0100 Subject: [PATCH] remove no longer required #[allow(clippy::mutable_key_type)] (#6210) * remove no longer required clippy::mutable_key_type lint --- beacon_node/lighthouse_network/src/lib.rs | 1 - beacon_node/lighthouse_network/src/peer_manager/mod.rs | 2 -- beacon_node/network/src/lib.rs | 3 --- 3 files changed, 6 deletions(-) diff --git a/beacon_node/lighthouse_network/src/lib.rs b/beacon_node/lighthouse_network/src/lib.rs index 0b827164fc4..5c12290b970 100644 --- a/beacon_node/lighthouse_network/src/lib.rs +++ b/beacon_node/lighthouse_network/src/lib.rs @@ -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; diff --git a/beacon_node/lighthouse_network/src/peer_manager/mod.rs b/beacon_node/lighthouse_network/src/peer_manager/mod.rs index ea3b51092e2..4d3da0c8e4b 100644 --- a/beacon_node/lighthouse_network/src/peer_manager/mod.rs +++ b/beacon_node/lighthouse_network/src/peer_manager/mod.rs @@ -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 PeerManager { /// 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>) { let mut to_dial_peers = 0; let connected_or_dialing = self.network_globals.connected_or_dialing_peers(); diff --git a/beacon_node/network/src/lib.rs b/beacon_node/network/src/lib.rs index 1149e6e6e38..13a2569b750 100644 --- a/beacon_node/network/src/lib.rs +++ b/beacon_node/network/src/lib.rs @@ -1,9 +1,7 @@ /// This crate provides the network server for Lighthouse. pub mod error; -#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy pub mod service; -#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy mod metrics; mod nat; mod network_beacon_processor; @@ -11,7 +9,6 @@ mod persisted_dht; mod router; mod status; mod subnet_service; -#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy mod sync; pub use lighthouse_network::NetworkConfig;