diff options
Diffstat (limited to 'src/ui/widgets/tui_menu.rs')
-rw-r--r-- | src/ui/widgets/tui_menu.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/tui_menu.rs b/src/ui/widgets/tui_menu.rs index fdd291e..5f628cc 100644 --- a/src/ui/widgets/tui_menu.rs +++ b/src/ui/widgets/tui_menu.rs @@ -3,7 +3,7 @@ use std::iter::Iterator; use termion::event::Key; use tui::buffer::Buffer; use tui::layout::Rect; -use tui::style::{Color, Style}; +use tui::style::Style; use tui::widgets::{Block, Borders, Widget}; use unicode_width::UnicodeWidthStr; @@ -31,7 +31,7 @@ impl TuiCommandMenu { m: &'a JoshutoCommandMapping, ) -> Option<&'a Box<dyn JoshutoCommand>> { let mut map: &JoshutoCommandMapping = &m; - let mut terminal = backend.terminal_mut(); + let terminal = backend.terminal_mut(); loop { terminal.draw(|mut frame| { |