From afb3f59fc7ef82b792d3c16326de467e80ff0241 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 19:08:24 +0100 Subject: [PATCH] Fix clippy: Derive Eq for MediaType Signed-off-by: Matthias Beyer --- src/entities/attachment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/attachment.rs b/src/entities/attachment.rs index 2115b9f..1ad9c3a 100644 --- a/src/entities/attachment.rs +++ b/src/entities/attachment.rs @@ -48,7 +48,7 @@ pub struct ImageDetails { } /// The type of media attachment. -#[derive(Debug, Deserialize, Serialize, Clone, Copy, PartialEq)] +#[derive(Debug, Deserialize, Serialize, Clone, Copy, PartialEq, Eq)] pub enum MediaType { /// An image. #[serde(rename = "image")]