add a few more lints (#8574)

This commit is contained in:
Thomas Coratger
2024-06-03 22:32:02 +02:00
committed by GitHub
parent 2b4fa96065
commit 279183d718
3 changed files with 8 additions and 4 deletions

View File

@@ -883,10 +883,8 @@ impl PeersManager {
for peer_id in unbanned_peers {
if let Some(peer) = self.peers.get_mut(&peer_id) {
peer.unban();
} else {
continue
self.queued_actions.push_back(PeerAction::UnBanPeer { peer_id });
}
self.queued_actions.push_back(PeerAction::UnBanPeer { peer_id });
}
// clear the backoff list of expired backoffs, and mark the relevant peers as

View File

@@ -159,7 +159,7 @@ impl Default for LayerInfo {
Self {
format: LogFormat::Terminal,
default_directive: LevelFilter::INFO.to_string(),
filters: "".to_string(),
filters: String::new(),
color: Some("always".to_string()),
}
}