diff --git a/src/lib.rs b/src/lib.rs index 37ae4d9..41d9687 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,6 +67,12 @@ impl std::fmt::Display for Error { } } +impl std::error::Error for Error { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + self.kind.source() + } +} + impl From for Error where ErrorKind: From,