diff --git a/renderer/src/lib.rs b/renderer/src/lib.rs index 6ca6f61e..ae7630d8 100644 --- a/renderer/src/lib.rs +++ b/renderer/src/lib.rs @@ -45,7 +45,7 @@ pub trait Renderer { fn draw_svg<'b>(&mut self, svg: Svg<'b>, rect: Rect, brush: Option>>); - fn draw_img<'b>(&mut self, img: Img<'b>, width: u32, height: u32, rect: Rect); + fn draw_img<'b>(&mut self, img: Img<'_>, width: u32, height: u32, rect: Rect); fn finish(&mut self); } diff --git a/src/renderer.rs b/src/renderer.rs index d8cfb20d..dab0359e 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -134,13 +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);