Use short-hand field notation in TextInput

This commit is contained in:
Héctor Ramón Jiménez 2023-01-12 03:22:34 +01:00
parent 178bd2d83c
commit c649ec8cf7
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -1043,7 +1043,7 @@ impl State {
pub fn focus(&mut self) {
let now = Instant::now();
self.is_focused = Some(Focus { at: now, now: now });
self.is_focused = Some(Focus { at: now, now });
self.move_cursor_to_end();
}