Skip to content

Commit 6f6e2a3

Browse files
committed
onefetch-image: make clippy unhappy again((
1 parent 575e04c commit 6f6e2a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

image/src/kitty.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ impl KittyBackend {
3131

3232
// generate red rgba test image
3333
let mut test_image = Vec::<u8>::with_capacity(32 * 32 * 4);
34-
test_image.extend(std::iter::repeat_n([255, 0, 0, 255].iter(), 32 * 32).flatten());
34+
test_image.extend(
35+
std::iter::repeat([255, 0, 0, 255].iter())
36+
.take(32 * 32)
37+
.flatten(),
38+
);
3539

3640
// print the test image with the action set to query
3741
print!(

0 commit comments

Comments
 (0)