Skip to content

Commit

Permalink
Implement Copy for ByteArray<N>
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 27, 2023
1 parent 7cd6ddb commit 15970a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bytearray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use serde::ser::{Serialize, Serializer};
/// # deserialize_bytearrays().unwrap();
/// # }
/// ```
#[derive(Clone, Eq, Ord)]
#[derive(Copy, Clone, Eq, Ord)]
pub struct ByteArray<const N: usize> {
bytes: [u8; N],
}
Expand Down

0 comments on commit 15970a2

Please sign in to comment.