diff --git a/src/azul.rs b/src/azul.rs index 910f787..c02dca6 100644 --- a/src/azul.rs +++ b/src/azul.rs @@ -172,7 +172,6 @@ impl Iterator for GameMoveIter { } } -#[repr(packed)] #[derive(Clone, Debug, Copy, PartialEq, Eq, Hash)] struct Bag { blue: u8, @@ -249,7 +248,6 @@ impl From> for Bag { }*/ -#[repr(packed)] #[derive(Default, Debug, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] struct Factory (tinyvec::ArrayVec<[Tile; 4]>); impl Clone for Factory { @@ -272,7 +270,6 @@ impl DerefMut for Factory { } -#[repr(packed)] #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] struct Market (tinyvec::ArrayVec<[Tile; 28]>); impl Default for Market { @@ -301,7 +298,6 @@ type Patterns = [tinyvec::ArrayVec<[Tile; 5]>; 5]; type Row = [bool; 5]; type Wall = [Row; 5]; -#[repr(packed)] #[derive(Debug, Clone, Default, Copy, PartialEq, Eq, Hash)] struct Board { score: u8, @@ -674,6 +670,7 @@ impl Hash for Game { fn hash(&self, state: &mut H) { unsafe{any_as_u8_slice(self).deref().hash(state)} } + } // Tests