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.
1 parent f22dca0 commit 0d39797Copy full SHA for 0d39797
src/libstd/io/error.rs
@@ -556,6 +556,14 @@ impl error::Error for Error {
556
Repr::Custom(ref c) => c.error.cause(),
557
}
558
559
+
560
+ fn source(&self) -> Option<&(dyn error::Error + 'static)> {
561
+ match self.repr {
562
+ Repr::Os(..) => None,
563
+ Repr::Simple(..) => None,
564
+ Repr::Custom(ref c) => c.error.source(),
565
+ }
566
567
568
569
fn _assert_error_is_sync_send() {
0 commit comments