std: update internal uses of io::const_error!
This commit is contained in:
@@ -3580,7 +3580,7 @@ impl Error for StripPrefixError {
|
||||
pub fn absolute<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
|
||||
let path = path.as_ref();
|
||||
if path.as_os_str().is_empty() {
|
||||
Err(io::const_io_error!(io::ErrorKind::InvalidInput, "cannot make an empty path absolute",))
|
||||
Err(io::const_error!(io::ErrorKind::InvalidInput, "cannot make an empty path absolute",))
|
||||
} else {
|
||||
sys::path::absolute(path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user