diff options
author | Ivan Petkov <ivanppetkov@gmail.com> | 2020-01-06 10:24:41 -0800 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2020-01-06 10:24:40 -0800 |
commit | 188fc6e0d24acf2cf1b51209e058a5c1a1d50dca (patch) | |
tree | 641e5a38463e9e07c1ea71da294e2d1f513a0e72 /tests-integration | |
parent | d45f61c183b2e0bb0da196bdd13d77461dd03477 (diff) |
process: deprecate Child stdio accessors in favor of pub fields (#2014)
Fixes #2009
Diffstat (limited to 'tests-integration')
-rw-r--r-- | tests-integration/tests/process_stdio.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-integration/tests/process_stdio.rs b/tests-integration/tests/process_stdio.rs index 36765258..de7cf025 100644 --- a/tests-integration/tests/process_stdio.rs +++ b/tests-integration/tests/process_stdio.rs @@ -25,8 +25,8 @@ fn cat() -> Command { } async fn feed_cat(mut cat: Child, n: usize) -> io::Result<ExitStatus> { - let mut stdin = cat.stdin().take().unwrap(); - let stdout = cat.stdout().take().unwrap(); + let mut stdin = cat.stdin.take().unwrap(); + let stdout = cat.stdout.take().unwrap(); // Produce n lines on the child's stdout. let write = async { @@ -97,7 +97,7 @@ async fn feed_a_lot() { #[tokio::test] async fn wait_with_output_captures() { let mut child = cat().spawn().unwrap(); - let mut stdin = child.stdin().take().unwrap(); + let mut stdin = child.stdin.take().unwrap(); let write_bytes = b"1234"; |