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

yes: fix error from manual_repeat_n lint

This commit is contained in:
Daniel Hofstetter 2025-04-03 15:38:06 +02:00
parent 5ab4968721
commit 293554e358

View file

@ -157,7 +157,7 @@ mod tests {
];
for (line, final_len) in tests {
let mut v = std::iter::repeat(b'a').take(line).collect::<Vec<_>>();
let mut v = std::iter::repeat_n(b'a', line).collect::<Vec<_>>();
prepare_buffer(&mut v);
assert_eq!(v.len(), final_len);
}