From 6c7dffa41b6eca2c8aac641c469f2f754c218548 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 12 Oct 2020 23:35:45 -0400 Subject: clippy --- src/bin/rbw/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/rbw/commands.rs') 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 { - crate::actions::version().or_else(|e| { + crate::actions::version().map_err(|e| { let _ = crate::actions::quit(); - Err(e) + e }) } -- cgit v1.2.3-54-g00ecf