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

fix more clippy warnings

This commit is contained in:
DevSabb 2022-03-28 11:09:26 -04:00
parent 16ad4bc069
commit 68b1f04f7d
2 changed files with 10 additions and 12 deletions

View file

@ -202,11 +202,11 @@ fn test_shuf_multiple_input_line_count() {
let result = new_ucmd!()
.args(&["-i10-200", "-n", "10", "-n", "5"])
.succeeds();
result.no_stderr();
let result_seq: Vec<&str> = result
result.no_stderr();
let result_seq = result
.stdout_str()
.split('\n')
.filter(|x| !x.is_empty())
.collect();
assert_eq!(result_seq.len(), 5, "Output should have 5 items");
.filter(|x| !x.is_empty());
assert_eq!(result_seq.count(), 5, "Output should have 5 items");
}