mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
enforce and fix a bunch of clippy issues
This commit is contained in:
@@ -67,11 +67,8 @@ impl<'t> Widget for TextEdit<'t> {
|
||||
}
|
||||
}
|
||||
Event::Key { key, pressed: true } => {
|
||||
match key {
|
||||
Key::Backspace => {
|
||||
self.text.pop(); // TODO: unicode aware
|
||||
}
|
||||
_ => {}
|
||||
if *key == Key::Backspace {
|
||||
self.text.pop(); // TODO: unicode aware
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user