Skip to content

Commit

Permalink
Merge pull request #551 from LNP-BP/feat/key-error-derives
Browse files Browse the repository at this point in the history
More derives for key::Error
  • Loading branch information
apoelstra committed Feb 21, 2021
2 parents 3ecab20 + 2467138 commit 81c56de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/key.rs
Expand Up @@ -27,7 +27,7 @@ use hash_types::{PubkeyHash, WPubkeyHash};
use util::base58;

/// A key-related error.
#[derive(Debug)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum Error {
/// Base58 encoding error
Base58(base58::Error),
Expand All @@ -39,8 +39,8 @@ pub enum Error {
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
Error::Base58(ref e) => write!(f, "base58 error: {}", e),
Error::Secp256k1(ref e) => write!(f, "secp256k1 error: {}", e),
Error::Base58(ref e) => write!(f, "Key base58 error: {}", e),
Error::Secp256k1(ref e) => write!(f, "Key secp256k1 error: {}", e),
}
}
}
Expand Down

0 comments on commit 81c56de

Please sign in to comment.