Derive Debug for StoreError

This commit is contained in:
Matthias Beyer 2016-01-16 14:29:09 +01:00
parent f36615940a
commit 86e7dde4b7

View file

@ -31,6 +31,7 @@ impl Display for StoreErrorKind {
}
#[derive(Debug)]
pub struct StoreError {
err_type: StoreErrorKind,
cause: Option<Box<Error>>,
@ -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> {