aboutsummaryrefslogtreecommitdiff
path: root/src/primitive
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/primitive/bufferid.rs1
-rw-r--r--src/primitive/msgid.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/primitive/bufferid.rs b/src/primitive/bufferid.rs
index 6ee2447..25cc029 100644
--- a/src/primitive/bufferid.rs
+++ b/src/primitive/bufferid.rs
@@ -1,4 +1,5 @@
#[derive(Copy, Clone, Debug, std::cmp::PartialEq)]
+#[repr(transparent)]
pub struct BufferId(pub i32);
use crate::{deserialize::*, error::ProtocolError, serialize::*};
diff --git a/src/primitive/msgid.rs b/src/primitive/msgid.rs
index a8048cf..fb9b6af 100644
--- a/src/primitive/msgid.rs
+++ b/src/primitive/msgid.rs
@@ -1,4 +1,5 @@
#[derive(Copy, Clone, Debug, std::cmp::PartialEq)]
+#[repr(transparent)]
pub struct MsgId(
#[cfg(not(feature = "long-message-id"))] pub i32,
#[cfg(feature = "long-message-id")] pub i64,