summaryrefslogtreecommitdiffstats
path: root/src/app/panel_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/panel_state.rs')
-rw-r--r--src/app/panel_state.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/panel_state.rs b/src/app/panel_state.rs
index 20d870b..62167a4 100644
--- a/src/app/panel_state.rs
+++ b/src/app/panel_state.rs
@@ -673,8 +673,7 @@ pub trait PanelState {
} else {
let line = input_invocation
.and_then(|inv| inv.args.as_ref())
- .map(|s| s.as_str())
- .unwrap_or("");
+ .map_or("", String::as_str);
verb_write(con, line)?;
}
CmdResult::Keep