From 53ae0c8a06891a14cb5e779e981eeb995399fddb Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 28 Nov 2022 16:32:27 -0600 Subject: [PATCH] rust/clippy: fix lint: derive_partial_eq_without_eq --- rust/src/bittorrent_dht/bittorrent_dht.rs | 2 +- rust/src/lib.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/src/bittorrent_dht/bittorrent_dht.rs b/rust/src/bittorrent_dht/bittorrent_dht.rs index 1a788ae6e1..c06bfb0dce 100644 --- a/rust/src/bittorrent_dht/bittorrent_dht.rs +++ b/rust/src/bittorrent_dht/bittorrent_dht.rs @@ -27,7 +27,7 @@ const BITTORRENT_DHT_PAYLOAD_PREFIX: &[u8] = b"d1:ad2:id20:\0"; static mut ALPROTO_BITTORRENT_DHT: AppProto = ALPROTO_UNKNOWN; -#[derive(AppLayerEvent, Debug, PartialEq)] +#[derive(AppLayerEvent, Debug, PartialEq, Eq)] pub enum BitTorrentDHTEvent { MalformedPacket, } diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 133bf9fe28..ba68d009cf 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -30,7 +30,6 @@ // To be fixed, but remove the noise for now. #![allow(clippy::collapsible_else_if)] #![allow(clippy::collapsible_if)] -#![allow(clippy::derive_partial_eq_without_eq)] #![allow(clippy::field_reassign_with_default)] #![allow(clippy::manual_find)] #![allow(clippy::match_like_matches_macro)]