Merge pull request #7348 from cakebaker/yes_remove_use_of_deprecated_fn_in_test

yes: fix use of deprecated function in test
This commit is contained in:
Sylvestre Ledru
2025-02-23 18:33:25 +01:00
committed by GitHub
+1 -2
View File
@@ -29,8 +29,7 @@ fn run(args: &[impl AsRef<OsStr>], expected: &[u8]) {
let buf = child.stdout_exact_bytes(expected.len());
child.close_stdout();
#[allow(deprecated)]
check_termination(child.wait_with_output().unwrap().status);
check_termination(child.wait().unwrap().exit_status());
assert_eq!(buf.as_slice(), expected);
}