From 0a1a15ae68e625249cf1302407713153ab1c2c19 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Thu, 23 May 2024 22:30:48 +0100 Subject: [PATCH] Fix clippy lints --- examples/swash_render/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/swash_render/src/main.rs b/examples/swash_render/src/main.rs index 270e3b0d..e47d28c1 100644 --- a/examples/swash_render/src/main.rs +++ b/examples/swash_render/src/main.rs @@ -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);