Skip to content

Commit 7c3782a

Browse files
committed
Add transparent representation to flag types
1 parent e66de36 commit 7c3782a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ macro_rules! new_flag {
305305
$(
306306
$(#[$type_meta])*
307307
#[derive(Copy, Clone, Eq, PartialEq)]
308+
#[repr(transparent)]
308309
$type_vis struct $type_name(pub(crate) $type_repr);
309310

310311
impl $type_name {

0 commit comments

Comments
 (0)