File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/std/src/sys/pal/unix Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ impl FileDesc {
120
120
( & mut me) . read_to_end ( buf)
121
121
}
122
122
123
- #[ allow( unused_unsafe) ]
123
+ #[ cfg_attr ( target_os = "vxworks" , allow( unused_unsafe) ) ]
124
124
pub fn read_at ( & self , buf : & mut [ u8 ] , offset : u64 ) -> io:: Result < usize > {
125
125
#[ cfg( not( any(
126
126
all( target_os = "linux" , not( target_env = "musl" ) ) ,
@@ -314,7 +314,7 @@ impl FileDesc {
314
314
cfg ! ( not( any( target_os = "espidf" , target_os = "horizon" , target_os = "vita" ) ) )
315
315
}
316
316
317
- #[ allow( unused_unsafe) ]
317
+ #[ cfg_attr ( target_os = "vxworks" , allow( unused_unsafe) ) ]
318
318
pub fn write_at ( & self , buf : & [ u8 ] , offset : u64 ) -> io:: Result < usize > {
319
319
#[ cfg( not( any(
320
320
all( target_os = "linux" , not( target_env = "musl" ) ) ,
You can’t perform that action at this time.
0 commit comments