Browse Source

cargo clippy

pull/1565/head
o2sh 8 months ago
parent
commit
3c9159e1ad
No known key found for this signature in database
GPG Key ID: 8E776BBC825CF3E3
  1. 6
      image/src/kitty.rs

6
image/src/kitty.rs

@ -31,11 +31,7 @@ impl KittyBackend {
// generate red rgba test image // generate red rgba test image
let mut test_image = Vec::<u8>::with_capacity(32 * 32 * 4); let mut test_image = Vec::<u8>::with_capacity(32 * 32 * 4);
test_image.extend( test_image.extend(std::iter::repeat_n([255, 0, 0, 255].iter(), 32 * 32).flatten());
std::iter::repeat([255, 0, 0, 255].iter())
.take(32 * 32)
.flatten(),
);
// print the test image with the action set to query // print the test image with the action set to query
print!( print!(

Loading…
Cancel
Save