diff options
author | quentin konieczko <konieczko@gmail.com> | 2022-10-21 13:39:27 +0200 |
---|---|---|
committer | quentin konieczko <konieczko@gmail.com> | 2022-10-21 13:39:27 +0200 |
commit | 39fb5bbb9797a270471a63f7ab2117fba0ea4a9b (patch) | |
tree | 2440c945a8fa6698016ec73be04faf596069f2fe /src/actioner.rs | |
parent | 169cf1f631d927e037c46055fb896a78393c85be (diff) |
removed unwraps
Diffstat (limited to 'src/actioner.rs')
-rw-r--r-- | src/actioner.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actioner.rs b/src/actioner.rs index e36852a..6806122 100644 --- a/src/actioner.rs +++ b/src/actioner.rs @@ -221,9 +221,9 @@ impl Actioner { /// Execute a command fn enter(&self, tabs: &mut Status) { match tabs.selected().mode { - Mode::Rename => tabs.selected().exec_rename(), - Mode::Newfile => tabs.selected().exec_newfile(), - Mode::Newdir => tabs.selected().exec_newdir(), + Mode::Rename => tabs.selected().exec_rename().unwrap_or_default(), + Mode::Newfile => tabs.selected().exec_newfile().unwrap_or_default(), + Mode::Newdir => tabs.selected().exec_newdir().unwrap_or_default(), Mode::Chmod => tabs.exec_chmod().unwrap_or_default(), Mode::Exec => tabs.selected().exec_exec(), Mode::Search => tabs.selected().exec_search(), |