1
0
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:
Emil Ernerfeldt
2020-05-07 10:47:03 +02:00
parent 077cc3d8d1
commit 87e3aacf35
25 changed files with 90 additions and 67 deletions

View File

@@ -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
}
}
_ => {}