Skip to content

Commit 8fca6f6

Browse files
authored
process: add Command::as_std_mut (#6608)
1 parent 75c953b commit 8fca6f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tokio/src/process/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ impl Command {
325325
&self.std
326326
}
327327

328+
/// Cheaply convert to a `&mut std::process::Command` for places where the type from the
329+
/// standard library is expected.
330+
pub fn as_std_mut(&mut self) -> &mut StdCommand {
331+
&mut self.std
332+
}
333+
328334
/// Adds an argument to pass to the program.
329335
///
330336
/// Only one argument can be passed per use. So instead of:

0 commit comments

Comments
 (0)