Skip to content

Commit

Permalink
tokio-process: Implement From<StdCommand> for Command (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl authored and ipetkov committed Aug 31, 2019
1 parent 2f91c85 commit 2643235
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tokio-net/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,12 @@ impl Command {
}
}

impl From<StdCommand> for Command {
fn from(std: StdCommand) -> Command {
Command { std }
}
}

/// A drop guard which ensures the child process is killed on drop to maintain
/// the contract of dropping a Future leads to "cancellation".
#[derive(Debug)]
Expand Down

0 comments on commit 2643235

Please sign in to comment.