diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-04-21 22:24:02 -0700 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-04-21 22:38:22 -0700 |
| commit | 01485c9fe9a50b48fd4c78e7116dcaa2aeb87a40 (patch) | |
| tree | adcfc1020244397b7260945f2b6c78bf55f7f8b3 /library/std/src/sys/args/unix.rs | |
| parent | 46952125661fa7bb6a016a6be4e03620da16a077 (diff) | |
| download | rust-01485c9fe9a50b48fd4c78e7116dcaa2aeb87a40.tar.gz rust-01485c9fe9a50b48fd4c78e7116dcaa2aeb87a40.zip | |
Unify owned `Env` types between platforms
Also, update the same pattern of reuse in `sys::args` to match.
Diffstat (limited to 'library/std/src/sys/args/unix.rs')
| -rw-r--r-- | library/std/src/sys/args/unix.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/std/src/sys/args/unix.rs b/library/std/src/sys/args/unix.rs index c087fd62965..a7b79ad396e 100644 --- a/library/std/src/sys/args/unix.rs +++ b/library/std/src/sys/args/unix.rs @@ -5,16 +5,13 @@ #![allow(dead_code)] // runtime init functions not used during testing +pub use super::common::Args; use crate::ffi::CStr; #[cfg(target_os = "hermit")] use crate::os::hermit::ffi::OsStringExt; #[cfg(not(target_os = "hermit"))] use crate::os::unix::ffi::OsStringExt; -#[path = "common.rs"] -mod common; -pub use common::Args; - /// One-time global initialization. pub unsafe fn init(argc: isize, argv: *const *const u8) { unsafe { imp::init(argc, argv) } |
