diff --git a/src/renderer.rs b/src/renderer.rs index dab0359e3..a474ab063 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -134,7 +134,7 @@ impl floem_renderer::Renderer for Renderer { } } - fn draw_img<'b>(&mut self, img: Img, width: u32, height: u32, rect: Rect) { + fn draw_img<'b>(&mut self, img: Img<'_>, width: u32, height: u32, rect: Rect) { match self { Renderer::Vger(v) => { v.draw_img(img, width, height, rect); diff --git a/vger/src/lib.rs b/vger/src/lib.rs index 6afb1a15b..3f458c30f 100644 --- a/vger/src/lib.rs +++ b/vger/src/lib.rs @@ -321,7 +321,7 @@ impl Renderer for VgerRenderer { } } - fn draw_img<'b>(&mut self, img: Img, img_width: u32, img_height: u32, rect: Rect) { + fn draw_img<'b>(&mut self, img: Img<'_>, img_width: u32, img_height: u32, rect: Rect) { let transform = self.transform.as_coeffs(); let target_width = (rect.width() * self.scale).round() as u32; let target_height = (rect.height() * self.scale).round() as u32;