Implement StorageBackendError::cause()

This commit is contained in:
Matthias Beyer 2015-11-28 16:19:37 +01:00
parent f060c89751
commit 043e607765

View file

@ -34,7 +34,7 @@ impl Error for ModuleError {
}
fn cause(&self) -> Option<&Error> {
unimplemented!()
self.caused_by.as_ref().map(|e| &**e)
}
}