@@ -20,7 +20,7 @@ use crate::sys::fs::OpenOptions;
2020use libc:: { c_char, c_int, gid_t, uid_t, EXIT_FAILURE , EXIT_SUCCESS } ;
2121
2222cfg_if:: cfg_if! {
23- if #[ cfg( any ( target_os = "freertos" , target_os = " fuchsia") ) ] {
23+ if #[ cfg( target_os = "fuchsia" ) ] {
2424 // fuchsia doesn't have /dev/null
2525 } else if #[ cfg( target_os = "redox" ) ] {
2626 const DEV_NULL : & str = "null:\0 " ;
@@ -123,7 +123,7 @@ pub enum ChildStdio {
123123
124124 // On Fuchsia, null stdio is the default, so we simply don't specify
125125 // any actions at the time of spawning.
126- #[ cfg( any ( target_os = "freertos" , target_os = " fuchsia") ) ]
126+ #[ cfg( target_os = "fuchsia" ) ]
127127 Null ,
128128}
129129
@@ -363,7 +363,7 @@ impl Stdio {
363363 Ok ( ( ChildStdio :: Owned ( theirs. into_fd ( ) ) , Some ( ours) ) )
364364 }
365365
366- #[ cfg( not( any ( target_os = "freertos" , target_os = " fuchsia") ) ) ]
366+ #[ cfg( not( target_os = "fuchsia" ) ) ]
367367 Stdio :: Null => {
368368 let mut opts = OpenOptions :: new ( ) ;
369369 opts. read ( readable) ;
@@ -373,7 +373,7 @@ impl Stdio {
373373 Ok ( ( ChildStdio :: Owned ( fd. into_fd ( ) ) , None ) )
374374 }
375375
376- #[ cfg( any ( target_os = "freertos" , target_os = " fuchsia") ) ]
376+ #[ cfg( target_os = "fuchsia" ) ]
377377 Stdio :: Null => Ok ( ( ChildStdio :: Null , None ) ) ,
378378 }
379379 }
@@ -398,7 +398,7 @@ impl ChildStdio {
398398 ChildStdio :: Explicit ( fd) => Some ( fd) ,
399399 ChildStdio :: Owned ( ref fd) => Some ( fd. raw ( ) ) ,
400400
401- #[ cfg( any ( target_os = "freertos" , target_os = " fuchsia") ) ]
401+ #[ cfg( target_os = "fuchsia" ) ]
402402 ChildStdio :: Null => None ,
403403 }
404404 }
0 commit comments