Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimmR committed Jul 31, 2024
1 parent ea0fdb2 commit 5893d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/widgets/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 5893d4c

Please sign in to comment.