File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1491,7 +1491,6 @@ impl File {
1491
1491
target_os = "redox" ,
1492
1492
target_os = "espidf" ,
1493
1493
target_os = "horizon" ,
1494
- target_os = "vxworks" ,
1495
1494
target_os = "nuttx" ,
1496
1495
) ) ) ]
1497
1496
let to_timespec = |time : Option < SystemTime > | match time {
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ impl Thread {
222
222
223
223
#[ cfg( target_os = "vxworks" ) ]
224
224
pub fn set_name ( name : & CStr ) {
225
- let mut name = truncate_cstr :: < { libc:: VX_TASK_RENAME_LENGTH - 1 } > ( name) ;
225
+ let mut name = truncate_cstr :: < { ( libc:: VX_TASK_RENAME_LENGTH - 1 ) as usize } > ( name) ;
226
226
let res = unsafe { libc:: taskNameSet ( libc:: taskIdSelf ( ) , name. as_mut_ptr ( ) ) } ;
227
227
debug_assert_eq ! ( res, libc:: OK ) ;
228
228
}
You can’t perform that action at this time.
0 commit comments