Skip to content

Commit 3c9159e

Browse files
committed
cargo clippy
1 parent 98292e0 commit 3c9159e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

image/src/kitty.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ 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(
35-
std::iter::repeat([255, 0, 0, 255].iter())
36-
.take(32 * 32)
37-
.flatten(),
38-
);
34+
test_image.extend(std::iter::repeat_n([255, 0, 0, 255].iter(), 32 * 32).flatten());
3935

4036
// print the test image with the action set to query
4137
print!(

0 commit comments

Comments
 (0)