Skip to content

Commit 87339da

Browse files
committed
Use cfg_if for unsupported fallback
1 parent 6305037 commit 87339da

File tree

2 files changed

+288
-378
lines changed

2 files changed

+288
-378
lines changed

Diff for: library/std/src/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ impl fmt::Debug for ArgsOs {
950950
/// Constants associated with the current target
951951
#[stable(feature = "env", since = "1.0.0")]
952952
pub mod consts {
953-
use crate::sys::env_consts::os;
953+
use crate::sys::env_consts as os;
954954

955955
/// A string describing the architecture of the CPU that is currently in use.
956956
/// An example value may be: `"x86"`, `"arm"` or `"riscv64"`.

0 commit comments

Comments
 (0)