summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-19 11:15:11 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-02-19 11:15:11 -0500
commitc330fa00b77d36bce35532044a2cd96d69a69321 (patch)
treec918678b5c894b48ddb6f316a77dd65c1e6870b0
parent1e3777d02d552e52c241c691c4f2fdf3b5de1c65 (diff)
fmt
-rw-r--r--src/commands/quit.rs3
-rw-r--r--src/ui.rs4
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;
diff --git a/src/ui.rs b/src/ui.rs
index dcfd5a5..9c5e258 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -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());