1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tests: make wait_with_output private

and un-deprecate it
This commit is contained in:
Daniel Hofstetter 2025-02-24 09:26:05 +01:00
parent fae7bb0a57
commit cf08040348

View file

@ -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<CmdResult> instead."]
pub fn wait_with_output(mut self) -> io::Result<Output> {
fn wait_with_output(mut self) -> io::Result<Output> {
// 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