Skip to content

Commit

Permalink
Derive Debug, Clone, Eq, PartialEq for Payload and Raw
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcebox committed Jan 14, 2025
1 parent 410629e commit 4604435
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This release focuses on improving the internal message data types and their usag
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `U4`.
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU4`.
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `InvalidU7`.
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `Payload`.
- Derive `Debug`, `Clone`, `Eq`, and `PartialEq` for `Raw`.
- Re-exports of common data types in the `message` module.

### Changed
Expand Down
2 changes: 2 additions & 0 deletions src/message/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use crate::message::data::u7::U7;

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

0 comments on commit 4604435

Please sign in to comment.