diff options
| author | 2023-01-12 03:22:34 +0100 | |
|---|---|---|
| committer | 2023-01-12 03:22:34 +0100 | |
| commit | c649ec8cf7066eb190193ff499c0ecccbca76796 (patch) | |
| tree | e848684ead9e9a5d0ae63989169e780310518823 /native | |
| parent | 178bd2d83c3336f80b9bb54c78a71711c2e0cdcd (diff) | |
| download | iced-c649ec8cf7066eb190193ff499c0ecccbca76796.tar.gz iced-c649ec8cf7066eb190193ff499c0ecccbca76796.tar.bz2 iced-c649ec8cf7066eb190193ff499c0ecccbca76796.zip | |
Use short-hand field notation in `TextInput`
Diffstat (limited to 'native')
| -rw-r--r-- | native/src/widget/text_input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |
