diff options
Diffstat (limited to 'src/ui/widgets/tui_textfield.rs')
-rw-r--r-- | src/ui/widgets/tui_textfield.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/widgets/tui_textfield.rs b/src/ui/widgets/tui_textfield.rs index 3ca7ad9..5d6427d 100644 --- a/src/ui/widgets/tui_textfield.rs +++ b/src/ui/widgets/tui_textfield.rs @@ -41,7 +41,9 @@ pub struct TuiTextField<'a> { impl<'a> TuiTextField<'a> { pub fn menu_items<I>(&mut self, items: I) -> &mut Self - where I: Iterator<Item = &'a str> { + where + I: Iterator<Item = &'a str>, + { self._menu_items = Some(items.collect()); self } |