diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-19 11:15:11 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-19 11:15:11 -0500 |
commit | c330fa00b77d36bce35532044a2cd96d69a69321 (patch) | |
tree | c918678b5c894b48ddb6f316a77dd65c1e6870b0 | |
parent | 1e3777d02d552e52c241c691c4f2fdf3b5de1c65 (diff) |
fmt
-rw-r--r-- | src/commands/quit.rs | 3 | ||||
-rw-r--r-- | src/ui.rs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/commands/quit.rs b/src/commands/quit.rs index a1d5ec0..3173ca1 100644 --- a/src/commands/quit.rs +++ b/src/commands/quit.rs @@ -1,8 +1,5 @@ -use std::process; - use commands::{JoshutoCommand, JoshutoRunnable}; use context::JoshutoContext; -use ui; #[derive(Clone, Debug)] pub struct Quit; @@ -228,10 +228,10 @@ pub fn redraw_tab_view(win: &window::JoshutoPanel, context: &JoshutoContext) { for i in 0..tab_len { if i == context.curr_tab_index { ncurses::wattron(win.win, ncurses::A_STANDOUT()); - ncurses::waddstr(win.win, &format!("{} ", i+1)); + ncurses::waddstr(win.win, &format!("{} ", i + 1)); ncurses::wattroff(win.win, ncurses::A_STANDOUT()); } else { - ncurses::waddstr(win.win, &format!("{} ", i+1)); + ncurses::waddstr(win.win, &format!("{} ", i + 1)); } } ncurses::wattroff(win.win, ncurses::A_BOLD()); |