Skip to content

Commit

Permalink
Remove unnecessary use of #[repr(packed)].
Browse files Browse the repository at this point in the history
This struct never seems to be used in a way that requires being packed.

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 720dcc9 commit c33b125
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tga/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ impl ImageType {

/// Header used by TGA image files
#[derive(Debug)]
#[repr(packed)]
struct Header {
id_length: u8, // length of ID string
map_type: u8, // color map type
Expand Down

0 comments on commit c33b125

Please sign in to comment.