Skip to content

Commit

Permalink
remove no longer required #[allow(clippy::mutable_key_type)] (#6210)
Browse files Browse the repository at this point in the history
* remove no longer required clippy::mutable_key_type lint
  • Loading branch information
jxs authored Aug 1, 2024
1 parent c7ded10 commit d9f8b13
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion beacon_node/lighthouse_network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions beacon_node/lighthouse_network/src/peer_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 0 additions & 3 deletions beacon_node/network/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
/// 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;
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;
Expand Down

0 comments on commit d9f8b13

Please sign in to comment.