Skip to content

Commit 3a2f78e

Browse files
authored
Merge pull request #127 from Finomnis/error_derives
Add copy and eq to UsbError
2 parents 0cbc134 + 7a50c89 commit 3a2f78e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2323
### Changed
2424
* `EndpointType` enum now has fields for isochronous synchronization and usage ([#60](https://github.com/rust-embedded-community/usb-device/pull/60)).
2525
* `descriptor_type::STRING` of `fn get_descriptor()` will send the LANGIDs supported by device, and respond STRING Request with specified LANGID. ([#122](https://github.com/rust-embedded-community/usb-device/pull/122))
26+
* `UsbError` is now copyable and comparable ([#127](https://github.com/rust-embedded-community/usb-device/pull/127))
2627

2728
## [0.2.9] - 2022-08-02
2829

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#![warn(missing_docs)]
3838

3939
/// A USB stack error.
40-
#[derive(Debug)]
40+
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
4141
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
4242
pub enum UsbError {
4343
/// An operation would block because the device is currently busy or there is no data available.

0 commit comments

Comments
 (0)