From 65ced46ffbe325ca85d45a98b0e60dc560f7476a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 18 Aug 2022 15:07:39 +0200 Subject: Fix clippy: c8y_api: Add derive for Eq This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer --- crates/core/c8y_api/src/json_c8y.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/c8y_api/src/json_c8y.rs b/crates/core/c8y_api/src/json_c8y.rs index d50559a1..868e2c0c 100644 --- a/crates/core/c8y_api/src/json_c8y.rs +++ b/crates/core/c8y_api/src/json_c8y.rs @@ -31,7 +31,7 @@ pub struct C8yCreateEvent { pub extras: HashMap, } -#[derive(Debug, Deserialize, Serialize, PartialEq)] +#[derive(Debug, Deserialize, Serialize, Eq, PartialEq)] #[serde(rename_all = "camelCase")] /// used to retrieve the id of a log event pub struct C8yEventResponse { @@ -57,7 +57,7 @@ impl InternalIdResponse { } } -#[derive(Debug, Deserialize, Serialize, PartialEq)] +#[derive(Debug, Deserialize, Serialize, Eq, PartialEq)] pub struct C8ySoftwareModuleItem { pub name: String, pub version: Option, @@ -87,7 +87,7 @@ impl From for C8ySoftwareModuleItem { } } -#[derive(Debug, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)] #[serde(rename_all = "camelCase")] pub struct C8yUpdateSoftwareListResponse { #[serde(rename = "c8y_SoftwareList")] -- cgit v1.2.3