We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93ab533 + 6637335 commit 5b59dbdCopy full SHA for 5b59dbd
2 files changed
library/std/src/sys/fs/unix.rs
@@ -1491,7 +1491,6 @@ impl File {
1491
target_os = "redox",
1492
target_os = "espidf",
1493
target_os = "horizon",
1494
- target_os = "vxworks",
1495
target_os = "nuttx",
1496
)))]
1497
let to_timespec = |time: Option<SystemTime>| match time {
library/std/src/sys/pal/unix/thread.rs
@@ -222,7 +222,7 @@ impl Thread {
222
223
#[cfg(target_os = "vxworks")]
224
pub fn set_name(name: &CStr) {
225
- let mut name = truncate_cstr::<{ libc::VX_TASK_RENAME_LENGTH - 1 }>(name);
+ let mut name = truncate_cstr::<{ (libc::VX_TASK_RENAME_LENGTH - 1) as usize }>(name);
226
let res = unsafe { libc::taskNameSet(libc::taskIdSelf(), name.as_mut_ptr()) };
227
debug_assert_eq!(res, libc::OK);
228
}
0 commit comments