Skip to content

Commit

Permalink
Make pixel types repr(transparent) rather than repr(C) (#2156)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Feb 24, 2024
1 parent bfc509e commit 478ad43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color.rs
Expand Up @@ -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<T> (pub [T; $channels]);

Expand Down

0 comments on commit 478ad43

Please sign in to comment.