Skip to content

Commit

Permalink
Add repr(transparent)
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Mar 4, 2023
1 parent ebd235e commit cb8b35f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
/// arr: Array<u8, 64>,
/// }
/// ```
#[repr(transparent)]
#[derive(Eq, PartialEq, PartialOrd, Copy, Clone, Ord, Debug)]
pub struct Array<T, const N: usize>(pub [T; N]);

Expand Down

0 comments on commit cb8b35f

Please sign in to comment.