1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Enable more clippy lints (#7418)

More is more!
This commit is contained in:
Emil Ernerfeldt
2025-08-05 19:47:26 +02:00
committed by GitHub
parent e9afd3c52d
commit ef039aa566
13 changed files with 38 additions and 16 deletions

View File

@@ -179,8 +179,8 @@ impl Keypad {
)
});
let mut is_first_show = false;
if ctx.wants_keyboard_input() && state.focus != focus {
let is_first_show = ctx.wants_keyboard_input() && state.focus != focus;
if is_first_show {
let y = ctx.style().spacing.interact_size.y * 1.25;
state.open = true;
state.start_pos = ctx.input(|i| {
@@ -189,7 +189,6 @@ impl Keypad {
.map_or(pos2(100.0, 100.0), |p| p + vec2(0.0, y))
});
state.focus = focus;
is_first_show = true;
}
if state.close_on_next_frame {