mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +02:00
process: add Command::as_std_mut (#6608)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user