From cf0804034892e07f7b45c4a9b65c6bcfa433df0d Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 24 Feb 2025 09:26:05 +0100 Subject: [PATCH] tests: make wait_with_output private and un-deprecate it --- tests/common/util.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index 28f0ef107..1487a5bb3 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -2284,7 +2284,6 @@ impl UChild { self.tmpd.clone(), ); - #[allow(deprecated)] let output = self.wait_with_output()?; Ok(CmdResult { @@ -2307,8 +2306,7 @@ impl UChild { /// /// If `self.timeout` is reached while waiting or [`Child::wait_with_output`] returned an /// error. - #[deprecated = "Please use wait() -> io::Result instead."] - pub fn wait_with_output(mut self) -> io::Result { + fn wait_with_output(mut self) -> io::Result { // some apps do not stop execution until their stdin gets closed. // to prevent a endless waiting here, we close the stdin. self.join(); // ensure that all pending async input is piped in