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/pal/unix/thread.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/pal/unix/thread.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index 04024661836..131a6e81b1e 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -469,7 +469,7 @@ pub fn available_parallelism() -> io::Result<NonZero<usize>> { unsafe { use libc::_syspage_ptr; if _syspage_ptr.is_null() { - Err(io::const_io_error!(io::ErrorKind::NotFound, "No syspage available")) + Err(io::const_error!(io::ErrorKind::NotFound, "No syspage available")) } else { let cpus = (*_syspage_ptr).num_cpu; NonZero::new(cpus as usize) @@ -509,7 +509,7 @@ pub fn available_parallelism() -> io::Result<NonZero<usize>> { } } else { // FIXME: implement on Redox, l4re - Err(io::const_io_error!(io::ErrorKind::Unsupported, "Getting the number of hardware threads is not supported on the target platform")) + Err(io::const_error!(io::ErrorKind::Unsupported, "Getting the number of hardware threads is not supported on the target platform")) } } } |
