From 043e607765028937fc16c1b4ec5132878c858bdd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 28 Nov 2015 16:19:37 +0100 Subject: [PATCH] Implement StorageBackendError::cause() --- src/module/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/mod.rs b/src/module/mod.rs index d1e06716..1319b90e 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -34,7 +34,7 @@ impl Error for ModuleError { } fn cause(&self) -> Option<&Error> { - unimplemented!() + self.caused_by.as_ref().map(|e| &**e) } }