Skip to content

Commit

Permalink
Derive PartialEq for Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed Jan 4, 2018
1 parent f072328 commit 9a30f0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ use libusb::*;
/// A result of a function that may return a `Error`.
pub type Result<T> = StdResult<T, Error>;


/// Errors returned by the `libusb` library.
#[derive(Debug)]
#[derive(Debug, PartialEq)]
pub enum Error {
/// Success (no error).
Success,
Expand Down

0 comments on commit 9a30f0b

Please sign in to comment.