mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Fix some trivial clippy warnings
This commit is contained in:
parent
47e61f064c
commit
efa361dd7c
5 changed files with 11 additions and 11 deletions
|
@ -6,12 +6,12 @@ use std::os::unix::process::ExitStatusExt;
|
|||
use crate::common::util::TestScenario;
|
||||
|
||||
#[cfg(unix)]
|
||||
fn check_termination(result: &ExitStatus) {
|
||||
fn check_termination(result: ExitStatus) {
|
||||
assert_eq!(result.signal(), Some(libc::SIGPIPE));
|
||||
}
|
||||
|
||||
#[cfg(not(unix))]
|
||||
fn check_termination(result: &ExitStatus) {
|
||||
fn check_termination(result: ExitStatus) {
|
||||
assert!(result.success(), "yes did not exit successfully");
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ fn run(args: &[&str], expected: &[u8]) {
|
|||
child.close_stdout();
|
||||
|
||||
#[allow(deprecated)]
|
||||
check_termination(&child.wait_with_output().unwrap().status);
|
||||
check_termination(child.wait_with_output().unwrap().status);
|
||||
assert_eq!(buf.as_slice(), expected);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue