Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed May 23, 2024
1 parent e7bf01e commit 0a1a15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/swash_render/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ fn render_glyph_run(
let mut i = 0;
for off_y in 0..glyph_height as i32 {
for off_x in 0..glyph_width as i32 {
let x = (glyph_origin_x + off_x as i32) as u32;
let y = (glyph_origin_y + off_y as i32) as u32;
let x = (glyph_origin_x + off_x) as u32;
let y = (glyph_origin_y + off_y) as u32;
let alpha = rendered_glyph.data[i];
let color = Rgba([color.r, color.g, color.b, alpha]);
img.get_pixel_mut(x, y).blend(&color);
Expand Down

0 comments on commit 0a1a15a

Please sign in to comment.