diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 15:07:39 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 15:40:40 +0200 |
commit | 65ced46ffbe325ca85d45a98b0e60dc560f7476a (patch) | |
tree | b1cb19c995086ef39c05f50bef05a5ef35b371eb | |
parent | db027cb7d063e1a88cffd4fc6607d7b28ae9a781 (diff) |
Fix clippy: c8y_api: Add derive for Eq
This fixes clippy::derive_partial_eq_without_eq
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | crates/core/c8y_api/src/json_c8y.rs | 6 |
1 files 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<String, Value>, } -#[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<String>, @@ -87,7 +87,7 @@ impl From<SoftwareModule> for C8ySoftwareModuleItem { } } -#[derive(Debug, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)] #[serde(rename_all = "camelCase")] pub struct C8yUpdateSoftwareListResponse { #[serde(rename = "c8y_SoftwareList")] |