1
0
Fork 0

Remove the Default bound from SysExMessage::Buffer

This commit is contained in:
Robbert van der Helm 2023-05-13 22:39:54 +02:00
parent 4753cd95ce
commit 727b15aa93
2 changed files with 8 additions and 1 deletions

View file

@ -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 reverse chronological order. The main purpose of this document in its current
state is to list breaking changes. 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] ## [2023-04-30]
### Changed ### Changed

View file

@ -23,7 +23,7 @@ pub trait SysExMessage: Debug + Clone + PartialEq + Send + Sync {
/// lengths just yet. /// lengths just yet.
/// ///
/// <https://github.com/rust-lang/rust/issues/60551> /// <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 /// 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 /// covers the full message, see the trait's docstring for more information. `buffer`'s length