summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-10-11 15:10:09 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-10-11 15:10:09 -0400
commitef1c0d32ed85f7ea54114f674ffbff2923e03040 (patch)
tree763860bbbe8541c2c208bf3af6d02a40c247f0b7 /src/commands
parent2807cbd6b8a7a5d7e4766e11d7671b8bbf98f290 (diff)
cargo fmt
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/key_command.rs4
-rw-r--r--src/commands/selection.rs6
2 files changed, 2 insertions, 8 deletions
diff --git a/src/commands/key_command.rs b/src/commands/key_command.rs
index c493069..9519e7c 100644
--- a/src/commands/key_command.rs
+++ b/src/commands/key_command.rs
@@ -313,9 +313,7 @@ impl JoshutoRunnable for KeyCommand {
Self::SearchNext => search::search_next(context),
Self::SearchPrev => search::search_prev(context),
- Self::SelectFiles { toggle, all } => {
- selection::select_files(context, *toggle, *all)
- }
+ Self::SelectFiles { toggle, all } => selection::select_files(context, *toggle, *all),
Self::SetMode => set_mode::set_mode(context, backend),
Self::ShellCommand(v) => shell::shell(context, backend, v.as_slice()),
diff --git a/src/commands/selection.rs b/src/commands/selection.rs
index aa99153..7e9a636 100644
--- a/src/commands/selection.rs
+++ b/src/commands/selection.rs
@@ -3,11 +3,7 @@ use crate::error::JoshutoResult;
use super::cursor_move;
-pub fn select_files(
- context: &mut JoshutoContext,
- toggle: bool,
- all: bool,
-) -> JoshutoResult<()> {
+pub fn select_files(context: &mut JoshutoContext, toggle: bool, all: bool) -> JoshutoResult<()> {
if toggle {
if !all {
if let Some(s) = context