diff --git a/libimagstore/src/error.rs b/libimagstore/src/error.rs index 5b7873df..bfba5b36 100644 --- a/libimagstore/src/error.rs +++ b/libimagstore/src/error.rs @@ -8,7 +8,7 @@ use std::convert::From; use std::io::Error as IOError; -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Debug)] pub enum StoreErrorKind { IdNotFound, OutOfMemory, @@ -22,15 +22,6 @@ fn store_error_type_as_str(e: &StoreErrorKind) -> &'static str { } } -impl Debug for StoreErrorKind { - - fn fmt(&self, fmt: &mut Formatter) -> Result<(), FmtError> { - try!(write!(fmt, "{:?}", store_error_type_as_str(self))); - Ok(()) - } - -} - impl Display for StoreErrorKind { fn fmt(&self, fmt: &mut Formatter) -> Result<(), FmtError> {