mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (for in => iter.take)
This commit is contained in:
parent
1642933275
commit
90a64a831a
1 changed files with 2 additions and 2 deletions
|
@ -424,8 +424,8 @@ fn wipe_file(
|
|||
pass_sequence.push(PassType::Pattern(*p));
|
||||
}
|
||||
}
|
||||
for i in 0..remainder {
|
||||
pass_sequence.push(PassType::Pattern(PATTERNS[i]));
|
||||
for pattern in PATTERNS.iter().take(remainder) {
|
||||
pass_sequence.push(PassType::Pattern(pattern));
|
||||
}
|
||||
rand::thread_rng().shuffle(&mut pass_sequence[..]); // randomize the order of application
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue