Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Standard error derives
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 30, 2021
1 parent 84d1302 commit 1c457ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use core::fmt;

/// [bitcoin_hashes] error.
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Error {
/// Tried to create a fixed-length hash from a slice with the wrong size (expected, got).
InvalidLength(usize, usize),
Expand Down
2 changes: 1 addition & 1 deletion src/hex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use core::{fmt, str};
use Hash;

/// Hex decoding error
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Error {
/// non-hexadecimal character
InvalidChar(u8),
Expand Down

0 comments on commit 1c457ab

Please sign in to comment.