From 29eb1197148c618795028dc2aa07a9151855be7f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 14 Aug 2023 13:24:19 +0200 Subject: [PATCH] Simpler generic syntax --- crates/egui/src/widgets/plot/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index b1fb7c271..22ce2438e 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -1604,10 +1604,10 @@ impl PreparedPlot { let mut axes_shapes = Vec::new(); if self.show_grid.x { - self.paint_grid::<{ X_AXIS }>(ui, &mut axes_shapes); + self.paint_grid::(ui, &mut axes_shapes); } if self.show_grid.y { - self.paint_grid::<{ Y_AXIS }>(ui, &mut axes_shapes); + self.paint_grid::(ui, &mut axes_shapes); } // Sort the axes by strength so that those with higher strength are drawn in front.