]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/wasi/mod.rs
Rename ErrorKind::Unknown to Uncategorized.
[rust.git] / library / std / src / sys / wasi / mod.rs
index 45a829c0cd212c90f04edd3ce9e44aeecf3d9c3c..4af99bfa464781d59aa7fbe79e97ce90d87ea855 100644 (file)
@@ -58,7 +58,7 @@
 pub fn decode_error_kind(errno: i32) -> std_io::ErrorKind {
     use std_io::ErrorKind::*;
     if errno > u16::MAX as i32 || errno < 0 {
-        return Other;
+        return Uncategorized;
     }
     match errno as u16 {
         wasi::ERRNO_CONNREFUSED => ConnectionRefused,
@@ -77,7 +77,7 @@ pub fn decode_error_kind(errno: i32) -> std_io::ErrorKind {
         wasi::ERRNO_AGAIN => WouldBlock,
         wasi::ERRNO_NOSYS => Unsupported,
         wasi::ERRNO_NOMEM => OutOfMemory,
-        _ => Other,
+        _ => Uncategorized,
     }
 }