summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2022-05-04 12:55:07 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2022-05-04 12:55:07 -0400
commit9c5bcfca9699dc0bd8656f0e5c405d66035af481 (patch)
treeee0fadc219f96fc14cced53d6d9c9a5b18a0500c /src/commands
parent8e7005ac347d0ef06af83e87874c824aa432da42 (diff)
cargo fmt
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/help.rs2
-rw-r--r--src/commands/numbered_command.rs2
-rw-r--r--src/commands/show_workers.rs2
-rw-r--r--src/commands/zoxide.rs10
4 files changed, 8 insertions, 8 deletions
diff --git a/src/commands/help.rs b/src/commands/help.rs
index b373105..bd8507d 100644
--- a/src/commands/help.rs
+++ b/src/commands/help.rs
@@ -5,8 +5,8 @@ use termion::event::{Event, Key};
use crate::config::AppKeyMapping;
use crate::context::AppContext;
use crate::error::JoshutoResult;
-use crate::event::AppEvent;
use crate::event::process_event;
+use crate::event::AppEvent;
use crate::key_command::{Command, CommandKeybind};
use crate::ui::widgets;
use crate::ui::widgets::TuiHelp;
diff --git a/src/commands/numbered_command.rs b/src/commands/numbered_command.rs
index dddaf66..06e97ac 100644
--- a/src/commands/numbered_command.rs
+++ b/src/commands/numbered_command.rs
@@ -4,8 +4,8 @@ use crate::commands::cursor_move;
use crate::config::AppKeyMapping;
use crate::context::AppContext;
use crate::error::{JoshutoError, JoshutoErrorKind, JoshutoResult};
-use crate::event::AppEvent;
use crate::event::process_event;
+use crate::event::AppEvent;
use crate::key_command::{CommandKeybind, NumberedExecute};
use crate::ui::views::TuiView;
use crate::ui::TuiBackend;
diff --git a/src/commands/show_workers.rs b/src/commands/show_workers.rs
index 2e55d7a..e20530a 100644
--- a/src/commands/show_workers.rs
+++ b/src/commands/show_workers.rs
@@ -3,8 +3,8 @@ use termion::event::{Event, Key};
use crate::config::AppKeyMapping;
use crate::context::AppContext;
use crate::error::JoshutoResult;
-use crate::event::AppEvent;
use crate::event::process_event;
+use crate::event::AppEvent;
use crate::ui::views::TuiWorkerView;
use crate::ui::TuiBackend;
diff --git a/src/commands/zoxide.rs b/src/commands/zoxide.rs
index dc7cec6..86cc956 100644
--- a/src/commands/zoxide.rs
+++ b/src/commands/zoxide.rs
@@ -39,7 +39,10 @@ pub fn zoxide_query(context: &mut AppContext, args: &str) -> JoshutoResult {
Ok(())
}
-pub fn zoxide_query_interactive(context: &mut AppContext, backend: &mut TuiBackend) -> JoshutoResult {
+pub fn zoxide_query_interactive(
+ context: &mut AppContext,
+ backend: &mut TuiBackend,
+) -> JoshutoResult {
backend.terminal_drop();
let zoxide_process = Command::new("zoxide")
@@ -76,9 +79,6 @@ pub fn zoxide_query_interactive(context: &mut AppContext, backend: &mut TuiBacke
}
fn zoxide_add(s: &str) -> io::Result<()> {
- Command::new("zoxide")
- .arg("add")
- .arg(s)
- .output()?;
+ Command::new("zoxide").arg("add").arg(s).output()?;
Ok(())
}