diff --git a/src/error.rs b/src/error.rs index 4ab80bed..e4c22c4f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -184,8 +184,8 @@ impl ErrorImpl { fn source(&self) -> Option<&(dyn StdError + 'static)> { match self { - ErrorImpl::Io(err) => Some(err), - ErrorImpl::FromUtf8(err) => Some(err), + ErrorImpl::Io(err) => err.source(), + ErrorImpl::FromUtf8(err) => err.source(), ErrorImpl::Shared(err) => err.source(), _ => None, }