1
0
Fork 0

Remove unnecessary deref

This commit is contained in:
Robbert van der Helm 2022-10-22 00:14:13 +02:00
parent 297ad2a83e
commit 0d90969566

View file

@ -268,7 +268,7 @@ impl<'a, P: Param> ParamSlider<'a, P> {
} else if ui.input().key_pressed(Key::Enter) { } else if ui.input().key_pressed(Key::Enter) {
// And try to set the value by string when pressing enter // And try to set the value by string when pressing enter
self.begin_drag(); self.begin_drag();
self.set_from_string(&*value_entry); self.set_from_string(&value_entry);
self.end_drag(); self.end_drag();
ui.memory().surrender_focus(keyboard_focus_id); ui.memory().surrender_focus(keyboard_focus_id);