From 44ba3c7a2f056fa452dee6e428d4a89accbccae5 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 4eaf87c87179..11d45fff867d 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 ef707129344d..8e68836c08b3 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() {