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:
parent
5ab4968721
commit
293554e358
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue