diff options
author | D. Scott Boggs <scott@tams.tech> | 2023-02-10 08:02:52 -0500 |
---|---|---|
committer | D. Scott Boggs <scott@tams.tech> | 2023-02-12 08:54:05 -0500 |
commit | fc826dd982eebbdfb25f56ff3eee8fb719f7d857 (patch) | |
tree | defe560f70631a8ec53395fea7e1ae53d5f2bbcb | |
parent | e6a7dfc6cc2a7d4222e694ae4802c06b498eefa9 (diff) |
clippy fixes
-rw-r--r-- | entities/src/account.rs | 2 | ||||
-rw-r--r-- | entities/src/admin/tag.rs | 2 | ||||
-rw-r--r-- | entities/src/tag.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/entities/src/account.rs b/entities/src/account.rs index 9fffdf2..94608a7 100644 --- a/entities/src/account.rs +++ b/entities/src/account.rs @@ -518,7 +518,7 @@ pub struct Suggestion { account: Account, } -#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, IsVariant)] +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, IsVariant)] #[serde(rename_all = "snake_case")] pub enum SuggestionSource { Staff, diff --git a/entities/src/admin/tag.rs b/entities/src/admin/tag.rs index dc95878..74c72c5 100644 --- a/entities/src/admin/tag.rs +++ b/entities/src/admin/tag.rs @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize}; use crate::{tag, TagId}; -#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub struct Tag { /// Non-admin data related to this hashtag #[serde(flatten)] diff --git a/entities/src/tag.rs b/entities/src/tag.rs index 5d0fb6f..30863b9 100644 --- a/entities/src/tag.rs +++ b/entities/src/tag.rs @@ -5,7 +5,7 @@ use time::Date; /// Represents a hashtag used within the content of a status. /// /// See also [the API documentation](https://docs.joinmastodon.org/entities/Tag/) -#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)] pub struct Tag { /// The value of the hashtag after the `#` sign. pub name: String, |