Derive Debug for StoreError
This commit is contained in:
parent
f36615940a
commit
86e7dde4b7
1 changed files with 1 additions and 10 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue