From 804313009d4be4cceeffca3623dbe39af295e75b Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Fri, 29 Dec 2023 11:51:00 +0300 Subject: [PATCH] Remove `map_err` and use `?` --- src/cli/export_command.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/export_command.rs b/src/cli/export_command.rs index b8b4a9f..5c0a682 100644 --- a/src/cli/export_command.rs +++ b/src/cli/export_command.rs @@ -46,8 +46,7 @@ impl RunCommand for Export { Format::BitWarden => { serde_json::to_string(&BitWardenPasswords::from(password_manager)) } - } - .map_err(LprsError::from)?; + }?; fs::write(&self.path, exported_data).map_err(LprsError::from) } else {