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 {
14911491 target_os = "redox" ,
14921492 target_os = "espidf" ,
14931493 target_os = "horizon" ,
1494- target_os = "vxworks" ,
14951494 target_os = "nuttx" ,
14961495 ) ) ) ]
14971496 let to_timespec = |time : Option < SystemTime > | match time {
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ impl Thread {
222222
223223 #[ cfg( target_os = "vxworks" ) ]
224224 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) ;
226226 let res = unsafe { libc:: taskNameSet ( libc:: taskIdSelf ( ) , name. as_mut_ptr ( ) ) } ;
227227 debug_assert_eq ! ( res, libc:: OK ) ;
228228 }
You can’t perform that action at this time.
0 commit comments