Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Jan 23, 2025
1 parent b56994c commit e58c8d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion anchor/network/src/peer_manager/peerdb/peer_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl PeerInfo {
if let Some(meta_data) = self.meta_data.as_ref() {
return meta_data.subnets.num_set_bits();
} else if let Some(enr) = self.enr.as_ref() {
if let Ok(attnets) = subnets_bitfield(&enr) {
if let Ok(attnets) = subnets_bitfield(enr) {
return attnets.num_set_bits();
}
}
Expand Down
4 changes: 2 additions & 2 deletions anchor/network/src/peer_manager/peerdb/score.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const GOSSIPSUB_POSITIVE_SCORE_WEIGHT: f64 = GOSSIPSUB_NEGATIVE_SCORE_WEIGHT;
#[derive(Debug)]
pub enum ReportSource {
Gossipsub,
RPC,
Rpc,
Processor,
SyncService,
PeerManager,
Expand All @@ -56,7 +56,7 @@ impl From<ReportSource> for &'static str {
fn from(report_source: ReportSource) -> &'static str {
match report_source {
ReportSource::Gossipsub => "gossipsub",
ReportSource::RPC => "rpc_error",
ReportSource::Rpc => "rpc_error",
ReportSource::Processor => "processor",
ReportSource::SyncService => "sync",
ReportSource::PeerManager => "peer_manager",
Expand Down

0 comments on commit e58c8d0

Please sign in to comment.