diff --git a/src/lib.rs b/src/lib.rs index f3c990c..5ae333d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,6 +92,7 @@ pub use impl_rand::{UniformNotNan, UniformOrdered}; #[derive(Default, Clone, Copy)] #[cfg_attr(feature = "facet", derive(Facet))] #[cfg_attr(feature = "facet", facet(transparent))] +#[repr(transparent)] pub struct OrderedFloat(pub T); #[cfg(feature = "derive-visitor")]