Skip to content

Commit 738f736

Browse files
committed
Remove unnecessary conditional cfg(target_os) for redox and vxworks
`redox` and `vxworks` are part of target_family `unix`, thus `cfg(unix)` already implies `cfg(target_os="redox")` and `(target_os="vxworks")`
1 parent 5233edc commit 738f736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/os/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub use crate::sys::wasi_ext as wasi;
2828
// If we're not documenting libstd then we just expose the main modules as we otherwise would.
2929

3030
#[cfg(not(doc))]
31-
#[cfg(any(target_os = "redox", unix, target_os = "vxworks", target_os = "hermit"))]
31+
#[cfg(any(unix, target_os = "hermit"))]
3232
#[stable(feature = "rust1", since = "1.0.0")]
3333
pub use crate::sys::ext as unix;
3434

0 commit comments

Comments
 (0)