refactor: clippy::explicit_counter_loop
This commit is contained in:
parent
77fd4b62d2
commit
4bc9b563e4
1 changed files with 1 additions and 4 deletions
|
@ -143,9 +143,7 @@ fn save_image_file(
|
||||||
|
|
||||||
let mut image = RgbImage::new(image_width, image_height);
|
let mut image = RgbImage::new(image_width, image_height);
|
||||||
|
|
||||||
let mut current_line: u32 = 0;
|
for (current_line, msg) in (0_u32..).zip(selected.iter()) {
|
||||||
|
|
||||||
for msg in &selected {
|
|
||||||
draw_text_mut(
|
draw_text_mut(
|
||||||
&mut image,
|
&mut image,
|
||||||
Rgb([254u8, 254u8, 254u8]),
|
Rgb([254u8, 254u8, 254u8]),
|
||||||
|
@ -157,7 +155,6 @@ fn save_image_file(
|
||||||
&font,
|
&font,
|
||||||
msg,
|
msg,
|
||||||
);
|
);
|
||||||
current_line += 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
image.save(out_path).unwrap();
|
image.save(out_path).unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue