diff --git a/src/device.rs b/src/device.rs index cbfda2b..f36440c 100644 --- a/src/device.rs +++ b/src/device.rs @@ -11,6 +11,7 @@ use fields::{self, Speed}; /// A reference to a USB device. +#[derive(Eq, PartialEq)] pub struct Device<'a> { context: PhantomData<&'a Context>, device: *mut libusb_device,