diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-05-27 14:03:35 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-06-15 14:22:49 +0200 |
| commit | 0b37bb2bc25be8059e88a4139d9ab067d9600610 (patch) | |
| tree | 94b924be8089b0c64707513a239c662e99739c04 /library/std/src/fs/tests.rs | |
| parent | cdbe2888979bb8797b05f0d58a6f6e60753983d2 (diff) | |
| download | rust-0b37bb2bc25be8059e88a4139d9ab067d9600610.tar.gz rust-0b37bb2bc25be8059e88a4139d9ab067d9600610.zip | |
Redefine `ErrorKind::Other` and stop using it in std.
Diffstat (limited to 'library/std/src/fs/tests.rs')
| -rw-r--r-- | library/std/src/fs/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/fs/tests.rs b/library/std/src/fs/tests.rs index ce8d3a56f7a..cc856b4cd45 100644 --- a/library/std/src/fs/tests.rs +++ b/library/std/src/fs/tests.rs @@ -1329,7 +1329,7 @@ fn metadata_access_times() { match (a.created(), b.created()) { (Ok(t1), Ok(t2)) => assert!(t1 <= t2), (Err(e1), Err(e2)) - if e1.kind() == ErrorKind::Other && e2.kind() == ErrorKind::Other + if e1.kind() == ErrorKind::Unknown && e2.kind() == ErrorKind::Unknown || e1.kind() == ErrorKind::Unsupported && e2.kind() == ErrorKind::Unsupported => {} (a, b) => { |
