diff --git a/libimagstore/src/error.rs b/libimagstore/src/error.rs index bfba5b36..8a2d56d8 100644 --- a/libimagstore/src/error.rs +++ b/libimagstore/src/error.rs @@ -31,6 +31,7 @@ impl Display for StoreErrorKind { } +#[derive(Debug)] pub struct StoreError { err_type: StoreErrorKind, cause: Option>, @@ -53,16 +54,6 @@ impl StoreError { } -impl Debug for StoreError { - - fn fmt(&self, fmt: &mut Formatter) -> Result<(), FmtError> { - try!(write!(fmt, "[{:?}]: caused by: {:?}", - self.err_type, self.cause)); - Ok(()) - } - -} - impl Display for StoreError { fn fmt(&self, fmt: &mut Formatter) -> Result<(), FmtError> {