diff options
| author | joboet <jonasboettiger@icloud.com> | 2025-03-27 14:20:25 +0100 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-04-28 11:13:50 +0200 |
| commit | 5f145689b1c0a313ee737de296a57d1479c18cb5 (patch) | |
| tree | 3e211a503c830d0c0d0a3470b55dab6b3ffafb63 /library/std/src/sys/process/windows.rs | |
| parent | 0134651fb81314870903e21b1bcbdd993d75b61a (diff) | |
| download | rust-5f145689b1c0a313ee737de296a57d1479c18cb5.tar.gz rust-5f145689b1c0a313ee737de296a57d1479c18cb5.zip | |
std: get rid of `sys_common::process`
Move the public `CommandEnvs` into the `process` module (and make it a wrapper type for an internal iterator type) and everything else into `sys::process` as per #117276.
Diffstat (limited to 'library/std/src/sys/process/windows.rs')
| -rw-r--r-- | library/std/src/sys/process/windows.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/library/std/src/sys/process/windows.rs b/library/std/src/sys/process/windows.rs index 4cfdf908c58..4acd753eec9 100644 --- a/library/std/src/sys/process/windows.rs +++ b/library/std/src/sys/process/windows.rs @@ -5,6 +5,7 @@ mod tests; use core::ffi::c_void; +use super::env::{CommandEnv, CommandEnvs}; use crate::collections::BTreeMap; use crate::env::consts::{EXE_EXTENSION, EXE_SUFFIX}; use crate::ffi::{OsStr, OsString}; @@ -24,7 +25,6 @@ use crate::sys::pal::{ensure_no_nuls, fill_utf16_buf}; use crate::sys::pipe::{self, AnonPipe}; use crate::sys::{cvt, path, stdio}; use crate::sys_common::IntoInner; -use crate::sys_common::process::{CommandEnv, CommandEnvs}; use crate::{cmp, env, fmt, ptr}; //////////////////////////////////////////////////////////////////////////////// @@ -389,11 +389,6 @@ impl Command { )) } } - - pub fn output(&mut self) -> io::Result<(ExitStatus, Vec<u8>, Vec<u8>)> { - let (proc, pipes) = self.spawn(Stdio::MakePipe, false)?; - crate::sys_common::process::wait_with_output(proc, pipes) - } } impl fmt::Debug for Command { |
