]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/os/wasi/fs.rs
Rename ErrorKind::Unknown to Uncategorized.
[rust.git] / library / std / src / os / wasi / fs.rs
index ba4057bd34ca2c13881a888d2ebebe16deaefa35..7f26f419a4b7ba7d6d5de0daf2b5b52909b2b739 100644 (file)
@@ -532,5 +532,6 @@ pub fn symlink_path<P: AsRef<Path>, U: AsRef<Path>>(old_path: P, new_path: U) ->
 }
 
 fn osstr2str(f: &OsStr) -> io::Result<&str> {
-    f.to_str().ok_or_else(|| io::Error::new_const(io::ErrorKind::Other, &"input must be utf-8"))
+    f.to_str()
+        .ok_or_else(|| io::Error::new_const(io::ErrorKind::Uncategorized, &"input must be utf-8"))
 }