From bff72bfcaa78458cb21dd46a61c0286d4f6ba48a Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 14 Mar 2022 10:18:48 +0100 Subject: [PATCH] clippy --- egui_glium/src/painter.rs | 2 +- egui_glow/src/painter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/egui_glium/src/painter.rs b/egui_glium/src/painter.rs index 4eaf87c8717..11d45fff867 100644 --- a/egui_glium/src/painter.rs +++ b/egui_glium/src/painter.rs @@ -101,7 +101,7 @@ impl Painter { { match primitive { Primitive::Mesh(mesh) => { - self.paint_mesh(target, display, pixels_per_point, clip_rect, &mesh); + self.paint_mesh(target, display, pixels_per_point, clip_rect, mesh); } Primitive::Callback(_) => { panic!("Custom rendering callbacks are not implemented in egui_glium"); diff --git a/egui_glow/src/painter.rs b/egui_glow/src/painter.rs index ef707129344..8e68836c08b 100644 --- a/egui_glow/src/painter.rs +++ b/egui_glow/src/painter.rs @@ -344,7 +344,7 @@ impl Painter { match primitive { Primitive::Mesh(mesh) => { - self.paint_mesh(&mesh); + self.paint_mesh(mesh); } Primitive::Callback(callback) => { if callback.rect.is_positive() {