diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-05-04 12:55:07 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-05-04 12:55:07 -0400 |
commit | 9c5bcfca9699dc0bd8656f0e5c405d66035af481 (patch) | |
tree | ee0fadc219f96fc14cced53d6d9c9a5b18a0500c /src | |
parent | 8e7005ac347d0ef06af83e87874c824aa432da42 (diff) |
cargo fmt
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/help.rs | 2 | ||||
-rw-r--r-- | src/commands/numbered_command.rs | 2 | ||||
-rw-r--r-- | src/commands/show_workers.rs | 2 | ||||
-rw-r--r-- | src/commands/zoxide.rs | 10 | ||||
-rw-r--r-- | src/run.rs | 2 | ||||
-rw-r--r-- | src/ui/views/tui_textfield.rs | 2 | ||||
-rw-r--r-- | src/ui/widgets/tui_prompt.rs | 2 |
7 files changed, 11 insertions, 11 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(()) } @@ -2,8 +2,8 @@ use crate::commands::numbered_command; use crate::commands::quit::QuitAction; use crate::config::AppKeyMapping; use crate::context::AppContext; -use crate::event::AppEvent; use crate::event::process_event; +use crate::event::AppEvent; use crate::key_command::{AppExecute, CommandKeybind}; use crate::preview::preview_default; use crate::tab::JoshutoTab; diff --git a/src/ui/views/tui_textfield.rs b/src/ui/views/tui_textfield.rs index b79e4a5..7cb4369 100644 --- a/src/ui/views/tui_textfield.rs +++ b/src/ui/views/tui_textfield.rs @@ -12,8 +12,8 @@ use tui::widgets::Clear; use unicode_width::UnicodeWidthStr; use crate::context::AppContext; -use crate::event::AppEvent; use crate::event::process_event; +use crate::event::AppEvent; use crate::key_command::{complete_command, Command, InteractiveExecute}; use crate::ui::views::TuiView; use crate::ui::widgets::{TuiMenu, TuiMultilineText}; diff --git a/src/ui/widgets/tui_prompt.rs b/src/ui/widgets/tui_prompt.rs index 4bbb2f5..2a3c8f9 100644 --- a/src/ui/widgets/tui_prompt.rs +++ b/src/ui/widgets/tui_prompt.rs @@ -5,8 +5,8 @@ use tui::text::Span; use tui::widgets::{Clear, Paragraph, Wrap}; use crate::context::AppContext; -use crate::event::AppEvent; use crate::event::process_event; +use crate::event::AppEvent; use crate::ui::views::TuiView; use crate::ui::TuiBackend; |