about summary refs log tree commit diff
path: root/library/std/src/sys/hermit/stdio.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-06-15 14:27:31 +0200
committerMara Bos <m-ou.se@m-ou.se>2021-06-15 14:30:13 +0200
commita0d11a4fab9c00e7df40a248de5d1532c56d5ef6 (patch)
tree9f1508830cc01208b2900e3e75b8b0a300f9f477 /library/std/src/sys/hermit/stdio.rs
parent82d3ef199fa33524fa78c46868daa0d24277f8a4 (diff)
downloadrust-a0d11a4fab9c00e7df40a248de5d1532c56d5ef6.tar.gz
rust-a0d11a4fab9c00e7df40a248de5d1532c56d5ef6.zip
Rename ErrorKind::Unknown to Uncategorized.
Diffstat (limited to 'library/std/src/sys/hermit/stdio.rs')
-rw-r--r--library/std/src/sys/hermit/stdio.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/sys/hermit/stdio.rs b/library/std/src/sys/hermit/stdio.rs
index e3c3912fc58..33b8390431f 100644
--- a/library/std/src/sys/hermit/stdio.rs
+++ b/library/std/src/sys/hermit/stdio.rs
@@ -40,7 +40,7 @@ impl io::Write for Stdout {
         unsafe { len = abi::write(1, data.as_ptr() as *const u8, data.len()) }
 
         if len < 0 {
-            Err(io::Error::new_const(io::ErrorKind::Unknown, &"Stdout is not able to print"))
+            Err(io::Error::new_const(io::ErrorKind::Uncategorized, &"Stdout is not able to print"))
         } else {
             Ok(len as usize)
         }
@@ -52,7 +52,7 @@ impl io::Write for Stdout {
         unsafe { len = abi::write(1, data.as_ptr() as *const u8, data.len()) }
 
         if len < 0 {
-            Err(io::Error::new_const(io::ErrorKind::Unknown, &"Stdout is not able to print"))
+            Err(io::Error::new_const(io::ErrorKind::Uncategorized, &"Stdout is not able to print"))
         } else {
             Ok(len as usize)
         }
@@ -81,7 +81,7 @@ impl io::Write for Stderr {
         unsafe { len = abi::write(2, data.as_ptr() as *const u8, data.len()) }
 
         if len < 0 {
-            Err(io::Error::new_const(io::ErrorKind::Unknown, &"Stderr is not able to print"))
+            Err(io::Error::new_const(io::ErrorKind::Uncategorized, &"Stderr is not able to print"))
         } else {
             Ok(len as usize)
         }
@@ -93,7 +93,7 @@ impl io::Write for Stderr {
         unsafe { len = abi::write(2, data.as_ptr() as *const u8, data.len()) }
 
         if len < 0 {
-            Err(io::Error::new_const(io::ErrorKind::Unknown, &"Stderr is not able to print"))
+            Err(io::Error::new_const(io::ErrorKind::Uncategorized, &"Stderr is not able to print"))
         } else {
             Ok(len as usize)
         }