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/sys/sgx/mod.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/sys/sgx/mod.rs')
| -rw-r--r-- | library/std/src/sys/sgx/mod.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/library/std/src/sys/sgx/mod.rs b/library/std/src/sys/sgx/mod.rs index cdfceca19fc..ae7b98281a3 100644 --- a/library/std/src/sys/sgx/mod.rs +++ b/library/std/src/sys/sgx/mod.rs @@ -70,7 +70,7 @@ pub fn sgx_ineffective<T>(v: T) -> crate::io::Result<T> { static SGX_INEFFECTIVE_ERROR: AtomicBool = AtomicBool::new(false); if SGX_INEFFECTIVE_ERROR.load(Ordering::Relaxed) { Err(crate::io::Error::new_const( - ErrorKind::Other, + ErrorKind::Unknown, &"operation can't be trusted to have any effect on SGX", )) } else { @@ -115,11 +115,11 @@ pub fn decode_error_kind(code: i32) -> ErrorKind { } else if code == Error::Interrupted as _ { ErrorKind::Interrupted } else if code == Error::Other as _ { - ErrorKind::Other + ErrorKind::Unknown } else if code == Error::UnexpectedEof as _ { ErrorKind::UnexpectedEof } else { - ErrorKind::Other + ErrorKind::Unknown } } | 
