From 478ad437be874db8779096b08655cfe8f6aea04e Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Sat, 24 Feb 2024 12:11:18 -0800 Subject: [PATCH] Make pixel types repr(transparent) rather than repr(C) (#2156) --- src/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color.rs b/src/color.rs index d646b85272..2002a27f14 100644 --- a/src/color.rs +++ b/src/color.rs @@ -256,7 +256,7 @@ $( // START Structure definitions $(#[$doc])* #[derive(PartialEq, Eq, Clone, Debug, Copy, Hash)] -#[repr(C)] +#[repr(transparent)] #[allow(missing_docs)] pub struct $ident (pub [T; $channels]);