Skip to content

Commit 9a30f0b

Browse files
committed
Derive PartialEq for Errors
1 parent f072328 commit 9a30f0b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ use libusb::*;
88
/// A result of a function that may return a `Error`.
99
pub type Result<T> = StdResult<T, Error>;
1010

11-
1211
/// Errors returned by the `libusb` library.
13-
#[derive(Debug)]
12+
#[derive(Debug, PartialEq)]
1413
pub enum Error {
1514
/// Success (no error).
1615
Success,

0 commit comments

Comments
 (0)