about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2024-11-25 13:49:25 +0100
committerjoboet <jonasboettiger@icloud.com>2024-11-26 18:38:24 +0100
commitc14d137bfc5133f5a38fad2f58e30fed9c47ffe2 (patch)
tree39c74cdea7465778402cd3bcba499b9317d6c606 /library/std/src/path.rs
parentd39afacbdfbc4fb1f8a6dcdb4af7c357bae8f7db (diff)
downloadrust-c14d137bfc5133f5a38fad2f58e30fed9c47ffe2.tar.gz
rust-c14d137bfc5133f5a38fad2f58e30fed9c47ffe2.zip
std: update internal uses of `io::const_error!`
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index b0291e3aa19..eaad6c53f77 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -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)
     }