From 34afef7cc656274408886ec22bf408c9f1591d9e Mon Sep 17 00:00:00 2001 From: Richard Zak Date: Sun, 3 Mar 2024 18:35:24 -0500 Subject: [PATCH] feat: ffi safety for `FlagSet`, closes #27 Signed-off-by: Richard Zak --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index d9680eb..9522e8f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -320,6 +320,7 @@ pub trait Flags: } } +#[repr(C)] #[derive(Copy, Clone, Eq, Hash)] pub struct FlagSet(F::Type);