From 95b3083b82bba75f04462920c6e75ce379f4f2b7 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 10 Mar 2024 16:55:59 -0500 Subject: [PATCH] Added `Eq` and `Ord` to UsbError --- src/usb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb.rs b/src/usb.rs index af08fda..885520d 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -78,7 +78,7 @@ pub trait Interface<'a> { } /// An error from a USB interface -#[derive(Error, Debug)] +#[derive(Error, Debug, PartialEq, Eq, PartialOrd, Ord)] pub enum UsbError { #[error("device not found")] DeviceNotFound,