diff options
| author | joboet <jonasboettiger@icloud.com> | 2024-11-25 13:49:25 +0100 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2024-11-26 18:38:24 +0100 |
| commit | c14d137bfc5133f5a38fad2f58e30fed9c47ffe2 (patch) | |
| tree | 39c74cdea7465778402cd3bcba499b9317d6c606 /library/std/src/sys/path/windows.rs | |
| parent | d39afacbdfbc4fb1f8a6dcdb4af7c357bae8f7db (diff) | |
| download | rust-c14d137bfc5133f5a38fad2f58e30fed9c47ffe2.tar.gz rust-c14d137bfc5133f5a38fad2f58e30fed9c47ffe2.zip | |
std: update internal uses of `io::const_error!`
Diffstat (limited to 'library/std/src/sys/path/windows.rs')
| -rw-r--r-- | library/std/src/sys/path/windows.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/path/windows.rs b/library/std/src/sys/path/windows.rs index 9267602cb97..de042fa3f82 100644 --- a/library/std/src/sys/path/windows.rs +++ b/library/std/src/sys/path/windows.rs @@ -328,7 +328,7 @@ pub(crate) fn absolute(path: &Path) -> io::Result<PathBuf> { if prefix.map(|x| x.is_verbatim()).unwrap_or(false) { // NULs in verbatim paths are rejected for consistency. if path.as_encoded_bytes().contains(&0) { - return Err(io::const_io_error!( + return Err(io::const_error!( io::ErrorKind::InvalidInput, "strings passed to WinAPI cannot contain NULs", )); |
