We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Error::source
1 parent 8f512d5 commit cc96b44Copy full SHA for cc96b44
src/errors.rs
@@ -24,9 +24,9 @@ impl fmt::Display for Error {
24
impl error::Error for Error {
25
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
26
match self {
27
- Error::Io(e) => Some(e),
28
- Error::Goblin(e) => Some(e),
29
- Error::LdSoConf(e) => Some(e),
+ Error::Io(e) => e.source(),
+ Error::Goblin(e) => e.source(),
+ Error::LdSoConf(e) => e.source(),
30
}
31
32
0 commit comments