Skip to content

Commit eb95c16

Browse files
committed
Remove unnecessary use of #[repr(packed)].
This struct is laid out the same way with or without `packed`, since it's just a few bytes. The removal is good because there's some correctness issues with it, so there may be breaking changes to it in future and removing it now will avoid them all together. See rust-lang/rust#27060.
1 parent d11b717 commit eb95c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use std::slice;
3838
pub mod ffi;
3939

4040
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
41-
#[repr(C, packed)]
41+
#[repr(C)]
4242
pub struct RGB8 {
4343
r: u8,
4444
g: u8,

0 commit comments

Comments
 (0)