From 5893d4cfe3c239cd665aeb0172635178fd37bb9c Mon Sep 17 00:00:00 2001 From: PrimmR Date: Wed, 31 Jul 2024 12:35:50 +0100 Subject: [PATCH] Clippy fixes --- crates/egui/src/widgets/button.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/widgets/button.rs b/crates/egui/src/widgets/button.rs index e0e33f40a51..68753bc0d63 100644 --- a/crates/egui/src/widgets/button.rs +++ b/crates/egui/src/widgets/button.rs @@ -311,7 +311,7 @@ impl Widget for Button<'_> { .align_size_within_rect(image_size, rect.shrink2(button_padding)) .min; if galley.is_some() || shortcut_galley.is_some() { - image_pos.x = cursor_x + image_pos.x = cursor_x; } let image_rect = Rect::from_min_size(image_pos, image_size); cursor_x += image_size.x; @@ -340,7 +340,7 @@ impl Widget for Button<'_> { .align_size_within_rect(galley.size(), rect.shrink2(button_padding)) .min; if image.is_some() || shortcut_galley.is_some() { - text_pos.x = cursor_x + text_pos.x = cursor_x; } ui.painter().galley(text_pos, galley, visuals.text_color()); }