Skip to content

Commit

Permalink
Remove unnecessary use of #[repr(packed)].
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
huonw committed Jul 24, 2015
1 parent d11b717 commit eb95c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use std::slice;
pub mod ffi;

#[derive(Debug, Eq, PartialEq, Clone, Copy)]
#[repr(C, packed)]
#[repr(C)]
pub struct RGB8 {
r: u8,
g: u8,
Expand Down

0 comments on commit eb95c16

Please sign in to comment.