]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/hermit/thread.rs
Rename ErrorKind::Unknown to Uncategorized.
[rust.git] / library / std / src / sys / hermit / thread.rs
index 7bd71e120de40a02f7cbbc96a3ccc64b8e37cf8f..56f438b6af6764aa4662746d06f22d2c14ad935c 100644 (file)
@@ -37,7 +37,7 @@ pub unsafe fn new_with_coreid(
             // The thread failed to start and as a result p was not consumed. Therefore, it is
             // safe to reconstruct the box so that it gets deallocated.
             drop(Box::from_raw(p));
-            Err(io::Error::new(io::ErrorKind::Other, "Unable to create thread!"))
+            Err(io::Error::new_const(io::ErrorKind::Uncategorized, &"Unable to create thread!"))
         } else {
             Ok(Thread { tid: tid })
         };