Redefine ErrorKind::Other
and stop using it in std.
This commit is contained in:
parent
cdbe288897
commit
0b37bb2bc2
24 changed files with 89 additions and 75 deletions
|
@ -532,5 +532,5 @@ 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::Unknown, &"input must be utf-8"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue