Implement StorageBackendError::cause()
This commit is contained in:
parent
f060c89751
commit
043e607765
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ impl Error for ModuleError {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cause(&self) -> Option<&Error> {
|
fn cause(&self) -> Option<&Error> {
|
||||||
unimplemented!()
|
self.caused_by.as_ref().map(|e| &**e)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue