diff --git a/src/lib.rs b/src/lib.rs index 49ec0b5..b156cb5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ macro_rules! nonany { #[doc = concat!("assert_eq!(core::mem::size_of::>>(), core::mem::size_of::<", stringify!($int), ">());")] /// ``` #[derive(Clone, Copy, Eq, Hash, PartialEq)] + #[repr(transparent)] pub struct $name(core::num::$nonzero); impl $name {