process: Update winapi to 0.3

This commit is contained in:
Alex Crichton
2019-06-24 16:56:51 -07:00
committed by Ivan Petkov
parent f0680617ee
commit f48944c1fb
4 changed files with 50 additions and 33 deletions
+5 -5
View File
@@ -294,9 +294,9 @@ impl CommandExt for process::Command {
self.stdout(Stdio::piped());
self.stderr(Stdio::piped());
OutputAsync {
inner: self.spawn_async(handle).into_future().and_then(|c| {
inner: Box::new(self.spawn_async(handle).into_future().and_then(|c| {
c.wait_with_output()
}).boxed(),
})),
}
}
}
@@ -383,13 +383,13 @@ impl Child {
};
WaitWithOutput {
inner: self.join3(stdout, stderr).map(|(status, stdout, stderr)| {
inner: Box::new(self.join3(stdout, stderr).map(|(status, stdout, stderr)| {
Output {
status: status,
stdout: stdout,
stderr: stderr,
}
}).boxed()
}))
}
}
@@ -668,7 +668,7 @@ impl Command {
pub fn spawn(mut self) -> Spawn {
Spawn {
inner: self.inner.spawn_async(&self.handle).into_future().boxed()
inner: Box::new(self.inner.spawn_async(&self.handle).into_future()),
}
}
}