Skip to content

Commit

Permalink
Made wrapped values of error tuple structs public
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcebox committed Dec 19, 2024
1 parent ad34baf commit 43b3979
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/data/u4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::convert::TryFrom;
pub struct U4(u8);

/// Error representing that this value is not a valid u4
pub struct InvalidU4(u8);
pub struct InvalidU4(pub u8);

impl TryFrom<u8> for U4 {
type Error = InvalidU4;
Expand Down
2 changes: 1 addition & 1 deletion src/data/u7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use core::convert::TryFrom;
pub struct U7(pub(crate) u8);

/// Error representing that this value is not a valid u7
pub struct InvalidU7(u8);
pub struct InvalidU7(pub u8);

impl TryFrom<u8> for U7 {
type Error = InvalidU7;
Expand Down
2 changes: 1 addition & 1 deletion src/message/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub enum Channel {
}

/// Error indicating an invalid MIDI channel.
pub struct InvalidChannel(u8);
pub struct InvalidChannel(pub u8);

impl TryFrom<u8> for Channel {
type Error = InvalidChannel;
Expand Down

0 comments on commit 43b3979

Please sign in to comment.