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 authored 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
Original file line number Diff line number Diff line change
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.