Skip to content

Commit 942699f

Browse files
committed
Derive Debug, Clone, Eq, PartialEq for InvalidU4 and InvalidU7
1 parent a67128a commit 942699f

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Added
1111

1212
- `Message` enum variants for *System Common* and *System Realtime* messages.
13+
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU4`.
14+
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU7`.
1315

1416
## [0.4.0] - 2025-01-03
1517

src/message/data/u4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::message::data::{FromClamped, FromOverFlow};
66
pub struct U4(u8);
77

88
/// Error representing that this value is not a valid u4
9+
#[derive(Debug, Clone, Eq, PartialEq)]
910
pub struct InvalidU4(pub u8);
1011

1112
impl TryFrom<u8> for U4 {

src/message/data/u7.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use crate::message::data::{FromClamped, FromOverFlow};
77
pub struct U7(pub(crate) u8);
88

99
/// Error representing that this value is not a valid u7
10+
#[derive(Debug, Clone, Eq, PartialEq)]
1011
pub struct InvalidU7(pub u8);
1112

1213
impl TryFrom<u8> for U7 {

0 commit comments

Comments
 (0)