diff options
author | Canop <cano.petrole@gmail.com> | 2020-01-20 22:11:38 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-01-20 22:11:38 +0100 |
commit | ec5220711e02c63a4832f984ae788958b3133d18 (patch) | |
tree | 822dacfb3a6c34809291bbd37cac5c958691dc31 /src/help_verbs.rs | |
parent | 7ccda47e5044ec2b56b1b6deb4ecdd82eacae9ff (diff) |
minor code fmt changes
Diffstat (limited to 'src/help_verbs.rs')
-rw-r--r-- | src/help_verbs.rs | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/help_verbs.rs b/src/help_verbs.rs index b8adad4..89ffcee 100644 --- a/src/help_verbs.rs +++ b/src/help_verbs.rs @@ -47,18 +47,12 @@ impl VerbExecutor for HelpState { self.scroll -= 1; AppStateCmdResult::Keep } - ":open_stay" => { - match open::that(&Conf::default_location()) { - Ok(exit_status) => { - info!("open returned with exit_status {:?}", exit_status); - AppStateCmdResult::Keep - } - Err(e) => { - AppStateCmdResult::DisplayError( - format!("{:?}", e) - ) - } + ":open_stay" => match open::that(&Conf::default_location()) { + Ok(exit_status) => { + info!("open returned with exit_status {:?}", exit_status); + AppStateCmdResult::Keep } + Err(e) => AppStateCmdResult::DisplayError(format!("{:?}", e)), }, ":open_leave" => AppStateCmdResult::from(Launchable::opener(Conf::default_location())), ":page_down" => { @@ -70,7 +64,9 @@ impl VerbExecutor for HelpState { AppStateCmdResult::Keep } ":print_path" => external::print_path(&Conf::default_location(), con)?, - ":print_relative_path" => external::print_relative_path(&Conf::default_location(), con)?, + ":print_relative_path" => { + external::print_relative_path(&Conf::default_location(), con)? + } ":quit" => AppStateCmdResult::Quit, ":focus_user_home" | ":focus_root" => AppStateCmdResult::PopStateAndReapply, _ if verb.execution.starts_with(":toggle") => AppStateCmdResult::PopStateAndReapply, |