From f36615940a15552e474ae90494b54729eae39052 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 16 Jan 2016 14:26:29 +0100 Subject: [PATCH] Do not impl Debug but derive --- libimagstore/src/error.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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> {