Skip to content

Commit

Permalink
removed JsonError from MakerError
Browse files Browse the repository at this point in the history
  • Loading branch information
wthrajat committed Jan 21, 2024
1 parent b9ae1af commit 8328094
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/maker/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{protocol::error::ContractError, wallet::WalletError};
#[derive(Debug)]
pub enum MakerError {
IO(std::io::Error),
Json(serde_json::Error),
UnexpectedMessage { expected: String, got: String },
General(&'static str),
MutexPossion,
Expand All @@ -32,12 +31,6 @@ impl From<serde_cbor::Error> for MakerError {
}
}

impl From<serde_json::Error> for MakerError {
fn from(value: serde_json::Error) -> Self {
Self::Json(value)
}
}

impl<'a, T> From<PoisonError<RwLockReadGuard<'a, T>>> for MakerError {
fn from(_: PoisonError<RwLockReadGuard<'a, T>>) -> Self {
Self::MutexPossion
Expand Down

0 comments on commit 8328094

Please sign in to comment.