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

remove explicit iter loops

This commit is contained in:
Daniel Eades 2022-01-30 14:07:07 +01:00
parent cf24620d3d
commit 2f85610cc3
13 changed files with 17 additions and 17 deletions

View file

@ -9,7 +9,7 @@ fn test_tee_processing_multiple_operands() {
// POSIX says: "Processing of at least 13 file operands shall be supported."
let content = "tee_sample_content";
for &n in [1, 2, 12, 13].iter() {
for &n in &[1, 2, 12, 13] {
let files = (1..=n).map(|x| x.to_string()).collect::<Vec<_>>();
let (at, mut ucmd) = at_and_ucmd!();
@ -18,7 +18,7 @@ fn test_tee_processing_multiple_operands() {
.succeeds()
.stdout_is(content);
for file in files.iter() {
for file in &files {
assert!(at.file_exists(file));
assert_eq!(at.read(file), content);
}