Skip to content

Commit

Permalink
Remove the Default bound from SysExMessage::Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
robbert-vdh committed May 13, 2023
1 parent 4753cd9 commit 727b15a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ Since there is no stable release yet, the changes are organized per day in
reverse chronological order. The main purpose of this document in its current
state is to list breaking changes.

## [2023-05-13]

### Fixed

- Removed the `Default` bound from the `SysExMessage::Buffer` type. This was a
leftover from an older design.

## [2023-04-30]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/midi/sysex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub trait SysExMessage: Debug + Clone + PartialEq + Send + Sync {
/// lengths just yet.
///
/// <https://github.com/rust-lang/rust/issues/60551>
type Buffer: Default + Borrow<[u8]> + BorrowMut<[u8]>;
type Buffer: Borrow<[u8]> + BorrowMut<[u8]>;

/// Read a SysEx message from `buffer` and convert it to this message type if supported. This
/// covers the full message, see the trait's docstring for more information. `buffer`'s length
Expand Down

0 comments on commit 727b15a

Please sign in to comment.