From 0223763ed00b266ce7b622371e2ec6b996e9eba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patric=20Kanngie=C3=9Fer?= Date: Tue, 29 Dec 2020 18:10:17 +0100 Subject: [PATCH] Cleanup --- src/data/usb_midi/usb_midi_event_packet.rs | 5 ----- src/midi_device.rs | 1 - 2 files changed, 6 deletions(-) diff --git a/src/data/usb_midi/usb_midi_event_packet.rs b/src/data/usb_midi/usb_midi_event_packet.rs index 815632f..a3cd807 100644 --- a/src/data/usb_midi/usb_midi_event_packet.rs +++ b/src/data/usb_midi/usb_midi_event_packet.rs @@ -3,12 +3,7 @@ use crate::data::usb_midi::code_index_number::CodeIndexNumber; use crate::data::midi::message::Message; use crate::data::byte::u4::U4; use crate::data::midi::message::raw::{Payload,Raw}; -use crate::data::byte::u4; use core::convert::TryFrom; -use crate::data::midi::channel::Channel::Channel1; -use crate::data::midi::notes::Note::C7; -use crate::data::byte::u7::U7; -use crate::data::byte::from_traits::FromClamped; /// A packet that communicates with the host diff --git a/src/midi_device.rs b/src/midi_device.rs index 00dcea4..44d7536 100644 --- a/src/midi_device.rs +++ b/src/midi_device.rs @@ -2,7 +2,6 @@ use usb_device::class_prelude::*; use usb_device::Result; use crate::data::usb::constants::*; use crate::data::usb_midi::usb_midi_event_packet::{UsbMidiEventPacket, MidiPacketParsingError}; -use core::convert::TryFrom; const MIDI_IN_SIZE: u8 = 0x06; const MIDI_OUT_SIZE: u8 = 0x09;