Skip to content

Commit

Permalink
process: add Command::as_std_mut (#6608)
Browse files Browse the repository at this point in the history
  • Loading branch information
tglane authored Jun 4, 2024
1 parent 75c953b commit 8fca6f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tokio/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fca6f6

Please sign in to comment.