From 191cc70362d163332a2ba605a9f4e6b7b8604b37 Mon Sep 17 00:00:00 2001 From: charburgx Date: Mon, 19 Dec 2022 04:12:06 -0600 Subject: [PATCH] syntax --- crates/egui/src/layers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/layers.rs b/crates/egui/src/layers.rs index a086875b..7f17d3b0 100644 --- a/crates/egui/src/layers.rs +++ b/crates/egui/src/layers.rs @@ -280,7 +280,7 @@ impl PaintList { /// Translate each [`Shape`] and clip rectangle by this much, in-place pub fn translate(&mut self, delta: Vec2) { - for (_z, ClippedShape(clip_rect, shape)) in &mut self.0 { + for (.., ClippedShape(clip_rect, shape)) in &mut self.0 { *clip_rect = clip_rect.translate(delta); shape.translate(delta); } @@ -331,6 +331,6 @@ impl GraphicLayers { } } - all_shapes.into_iter().map(|(_z, shape)| shape) + all_shapes.into_iter().map(|(.., shape)| shape) } }