Skip to content

Commit

Permalink
chore: Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LeanderBB committed Dec 28, 2024
1 parent 343f3a4 commit 1ce364f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions proton/proton-api/src/domain/message.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use crate::domain::label::Id as LabelId;
use crate::domain::Boolean;
use serde::Deserialize;
use serde::{Deserialize, Serialize};
use std::fmt::{Display, Formatter};

/// Message API ID.
#[derive(Debug, Deserialize, Eq, PartialEq, Hash, Clone)]
#[cfg_attr(feature = "mocks", derive(serde::Serialize))]
#[derive(Debug, Deserialize, Serialize, Eq, PartialEq, Hash, Clone)]
pub struct Id(pub String);

impl Display for Id {
Expand All @@ -16,7 +15,7 @@ impl Display for Id {

/// Represents an email message.
#[derive(Debug, Deserialize, Eq, PartialEq, Clone)]
#[cfg_attr(feature = "mocks", derive(serde::Serialize))]
#[cfg_attr(feature = "mocks", derive(Serialize))]
#[serde(rename_all = "PascalCase")]
pub struct Message {
#[serde(rename = "ID")]
Expand Down

0 comments on commit 1ce364f

Please sign in to comment.