Skip to content

Commit 4604435

Browse files
committed
Derive Debug, Clone, Eq, PartialEq for Payload and Raw
1 parent 410629e commit 4604435

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This release focuses on improving the internal message data types and their usag
1616
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `U4`.
1717
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU4`.
1818
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU7`.
19+
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `Payload`.
20+
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `Raw`.
1921
- Re-exports of common data types in the `message` module.
2022

2123
### Changed

src/message/raw.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use crate::message::data::u7::U7;
44

55
/// Represents the payloads that the midi message may contain.
6+
#[derive(Debug, Clone, Eq, PartialEq)]
67
pub enum Payload {
78
/// No payload.
89
Empty,
@@ -16,6 +17,7 @@ pub enum Payload {
1617
///
1718
/// A midi message may be in, but without domain logic mainly useful for serializing.
1819
/// This represents the possible 'shapes', doesn't verify if the data makes sense though!
20+
#[derive(Debug, Clone, Eq, PartialEq)]
1921
pub struct Raw {
2022
/// Status byte.
2123
pub status: u8,

0 commit comments

Comments
 (0)