From c649ec8cf7066eb190193ff499c0ecccbca76796 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 12 Jan 2023 03:22:34 +0100 Subject: Use short-hand field notation in `TextInput` --- native/src/widget/text_input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'native/src/widget') diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 4a7cc1e7..db8f25ed 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -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(); } -- cgit