From 3120448cf3000173be6e6c41943a8750513d6161 Mon Sep 17 00:00:00 2001 From: David Thomas Date: Fri, 8 Dec 2023 09:48:54 +0000 Subject: [PATCH] Add missing repr(packed) to ForumTagId and RuleId --- src/model/id.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model/id.rs b/src/model/id.rs index 52ce0260a5b..e30856b1555 100644 --- a/src/model/id.rs +++ b/src/model/id.rs @@ -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); @@ -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);