aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/commands.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-10-12 23:35:45 -0400
committerJesse Luehrs <doy@tozt.net>2020-10-12 23:35:45 -0400
commit6c7dffa41b6eca2c8aac641c469f2f754c218548 (patch)
treeb735740c60b007a962a55cca3a27891ea5f6566b /src/bin/rbw/commands.rs
parentd756b9a6dc4da4bdd889e5dc7c64c50d9d96cdd9 (diff)
downloadrbw-6c7dffa41b6eca2c8aac641c469f2f754c218548.tar.gz
rbw-6c7dffa41b6eca2c8aac641c469f2f754c218548.zip
clippy
Diffstat (limited to 'src/bin/rbw/commands.rs')
-rw-r--r--src/bin/rbw/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs
index f514153..b2f64a3 100644
--- a/src/bin/rbw/commands.rs
+++ b/src/bin/rbw/commands.rs
@@ -1007,9 +1007,9 @@ fn check_config() -> anyhow::Result<()> {
}
fn version_or_quit() -> anyhow::Result<u32> {
- crate::actions::version().or_else(|e| {
+ crate::actions::version().map_err(|e| {
let _ = crate::actions::quit();
- Err(e)
+ e
})
}