From 95a8795b267fc1184e1e81f2f95470d1d7929817 Mon Sep 17 00:00:00 2001 From: JohannesProgrammiert Date: Fri, 26 May 2023 10:35:07 +0200 Subject: [PATCH] Fix clippy --- crates/egui/src/widgets/plot/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index 175d58b77..9356bfa03 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -1163,13 +1163,13 @@ impl Plot { }; for mut widget in x_axis_widgets { widget.range = x_axis_range.clone(); - widget.transform = Some(transform.clone()); + widget.transform = Some(transform); widget.steps = x_steps.clone(); ui.add(widget); } for mut widget in y_axis_widgets { widget.range = y_axis_range.clone(); - widget.transform = Some(transform.clone()); + widget.transform = Some(transform); widget.steps = y_steps.clone(); ui.add(widget); } @@ -1186,7 +1186,7 @@ impl Plot { label_formatter, coordinates_formatter, show_grid, - transform: transform.clone(), + transform, draw_cursor_x: linked_cursors.as_ref().map_or(false, |group| group.1.x), draw_cursor_y: linked_cursors.as_ref().map_or(false, |group| group.1.y), draw_cursors,