mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
process: add Command::as_std_mut
(#6608)
This commit is contained in:
parent
75c953bd63
commit
8fca6f6dad
@ -325,6 +325,12 @@ impl Command {
|
||||
&self.std
|
||||
}
|
||||
|
||||
/// Cheaply convert to a `&mut std::process::Command` for places where the type from the
|
||||
/// standard library is expected.
|
||||
pub fn as_std_mut(&mut self) -> &mut StdCommand {
|
||||
&mut self.std
|
||||
}
|
||||
|
||||
/// Adds an argument to pass to the program.
|
||||
///
|
||||
/// Only one argument can be passed per use. So instead of:
|
||||
|
Loading…
x
Reference in New Issue
Block a user