Enable clippy's derive_partial_eq_without_eq linter (#7203)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Justin Traglia
2024-03-18 17:33:53 -05:00
committed by GitHub
parent 89b188e9ae
commit 3861bc05fa
20 changed files with 37 additions and 36 deletions

View File

@ -18,7 +18,7 @@ pub fn is_global(ip: &IpAddr) -> bool {
/// Stores peers that should be taken out of circulation either indefinitely or until a certain
/// timestamp
#[derive(Debug, Clone, Default, PartialEq)]
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct BanList {
/// A set of IPs whose packets get dropped instantly.
banned_ips: HashMap<IpAddr, Option<Instant>>,