Skip to content

Commit cc96b44

Browse files
committed
Fix Error::source impl
1 parent 8f512d5 commit cc96b44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/errors.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ impl fmt::Display for Error {
2424
impl error::Error for Error {
2525
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
2626
match self {
27-
Error::Io(e) => Some(e),
28-
Error::Goblin(e) => Some(e),
29-
Error::LdSoConf(e) => Some(e),
27+
Error::Io(e) => e.source(),
28+
Error::Goblin(e) => e.source(),
29+
Error::LdSoConf(e) => e.source(),
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)