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

Commit 3ba1936

Browse files
authored
Merge pull request #110 from pandoracore/fix/error-derive
Standard error derives
2 parents 84d1302 + 1c457ab commit 3ba1936

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use core::fmt;
1919

2020
/// [bitcoin_hashes] error.
21-
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
21+
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
2222
pub enum Error {
2323
/// Tried to create a fixed-length hash from a slice with the wrong size (expected, got).
2424
InvalidLength(usize, usize),

src/hex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use core::{fmt, str};
1919
use Hash;
2020

2121
/// Hex decoding error
22-
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
22+
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
2323
pub enum Error {
2424
/// non-hexadecimal character
2525
InvalidChar(u8),

0 commit comments

Comments
 (0)