From 2aeb5bb88b9a99e65b03521120008f11391c5d2b Mon Sep 17 00:00:00 2001 From: Riey Date: Thu, 15 Apr 2021 15:55:06 +0900 Subject: [PATCH] Add #[repr(transparent)] --- enumset/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/enumset/src/lib.rs b/enumset/src/lib.rs index a3f5eab..cbf9922 100644 --- a/enumset/src/lib.rs +++ b/enumset/src/lib.rs @@ -213,6 +213,7 @@ pub unsafe trait EnumSetType: Copy + Eq + EnumSetTypePrivate { } /// instead serialized as a list of enum variants. This requires your enum type implement /// [`Serialize`] and [`Deserialize`]. Note that this is a breaking change #[derive(Copy, Clone, PartialEq, Eq)] +#[repr(transparent)] pub struct EnumSet { #[doc(hidden)] /// This is public due to the [`enum_set!`] macro. -- 2.44.0