Skip to content

Commit

Permalink
Remove error serialization/deserialization (#3110)
Browse files Browse the repository at this point in the history
it's not used
  • Loading branch information
hashmap authored Nov 13, 2019
1 parent 8ce2bfd commit 76ac941
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 469 deletions.
2 changes: 1 addition & 1 deletion core/src/core/committed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::util::{secp, secp_static, static_secp_instance};
use failure::Fail;

/// Errors from summing and verifying kernel excesses via committed trait.
#[derive(Debug, Clone, PartialEq, Eq, Fail, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Eq, Fail)]
pub enum Error {
/// Keychain related error.
#[fail(display = "Keychain error {}", _0)]
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl Readable for KernelFeatures {
}

/// Errors thrown by Transaction validation
#[derive(Clone, Eq, Debug, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Eq, Debug, PartialEq)]
pub enum Error {
/// Underlying Secp256k1 error (signature validation or invalid public key
/// typically)
Expand Down
2 changes: 1 addition & 1 deletion core/src/libtx/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct Error {
inner: Context<ErrorKind>,
}

#[derive(Clone, Debug, Eq, Fail, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, Eq, Fail, PartialEq)]
/// Libwallet error types
pub enum ErrorKind {
/// SECP error
Expand Down
Loading

0 comments on commit 76ac941

Please sign in to comment.