From 978d4660199f0b03de4b0f3aa339dbc78e078576 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 31 Jan 2023 17:51:56 +0100 Subject: [PATCH] Add trait bounds for the SysExMessage trait --- src/midi/sysex.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/midi/sysex.rs b/src/midi/sysex.rs index 88f219d4..68286bc8 100644 --- a/src/midi/sysex.rs +++ b/src/midi/sysex.rs @@ -1,7 +1,9 @@ //! Traits for working with MIDI SysEx data. +use std::fmt::Debug; + /// A type that can be converted to and from byte buffers containing MIDI SysEx messages. -pub trait SysExMessage { +pub trait SysExMessage: Debug + Clone + PartialEq + Send + Sync { /// The maximum SysEx message size, in bytes. const MAX_BUFFER_SIZE: usize;