We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 54a5073 + 0d39797 commit 378a011Copy full SHA for 378a011
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