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; mod config;
pub mod service; pub mod service;
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy
pub mod discovery; pub mod discovery;
pub mod listen_addr; pub mod listen_addr;
pub mod metrics; pub mod metrics;

View File

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

View File

@@ -1,9 +1,7 @@
/// This crate provides the network server for Lighthouse. /// This crate provides the network server for Lighthouse.
pub mod error; pub mod error;
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy
pub mod service; pub mod service;
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy
mod metrics; mod metrics;
mod nat; mod nat;
mod network_beacon_processor; mod network_beacon_processor;
@@ -11,7 +9,6 @@ mod persisted_dht;
mod router; mod router;
mod status; mod status;
mod subnet_service; mod subnet_service;
#[allow(clippy::mutable_key_type)] // PeerId in hashmaps are no longer permitted by clippy
mod sync; mod sync;
pub use lighthouse_network::NetworkConfig; pub use lighthouse_network::NetworkConfig;