]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/sgx/mod.rs
Rename ErrorKind::Unknown to Uncategorized.
[rust.git] / library / std / src / sys / sgx / mod.rs
index ae7b98281a30925f004f01e207c57be959601738..fce6b4207328b7677901c4079fd6042b28e039c6 100644 (file)
@@ -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::Unknown,
+            ErrorKind::Uncategorized,
             &"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::Unknown
+        ErrorKind::Uncategorized
     } else if code == Error::UnexpectedEof as _ {
         ErrorKind::UnexpectedEof
     } else {
-        ErrorKind::Unknown
+        ErrorKind::Uncategorized
     }
 }