diff --git a/tokio-net/src/process/mod.rs b/tokio-net/src/process/mod.rs index e1e6cce8493..7de1064ea2b 100644 --- a/tokio-net/src/process/mod.rs +++ b/tokio-net/src/process/mod.rs @@ -571,6 +571,12 @@ impl Command { } } +impl From 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)]