Skip to content

Commit 5155ddf

Browse files
committed
Derive Debug, Clone, Eq, PartialEq for U4
1 parent 942699f commit 5155ddf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ 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 `U4`.
1314
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU4`.
1415
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU7`.
1516

src/message/data/u4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use crate::message::data::{FromClamped, FromOverFlow};
44

55
/// A primitive value that can be from 0-0x0F
6+
#[derive(Debug, Clone, Eq, PartialEq)]
67
pub struct U4(u8);
78

89
/// Error representing that this value is not a valid u4

0 commit comments

Comments
 (0)