Skip to content

Commit

Permalink
Add missing #[repr(packed)] to ForumTagId and RuleId (serenity-…
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev authored Dec 8, 2023
1 parent 2833a62 commit 3ce3de5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/model/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub struct MessageId(#[serde(with = "snowflake")] NonZeroU64);
pub struct RoleId(#[serde(with = "snowflake")] NonZeroU64);

/// An identifier for an auto moderation rule
#[repr(packed)]
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord, Deserialize, Serialize)]
pub struct RuleId(#[serde(with = "snowflake")] NonZeroU64);

Expand Down Expand Up @@ -248,6 +249,7 @@ pub struct TargetId(#[serde(with = "snowflake")] NonZeroU64);
pub struct StageInstanceId(#[serde(with = "snowflake")] NonZeroU64);

/// An identifier for a forum tag.
#[repr(packed)]
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord, Deserialize, Serialize)]
pub struct ForumTagId(#[serde(with = "snowflake")] NonZeroU64);

Expand Down

0 comments on commit 3ce3de5

Please # to comment.