Skip to content

Commit 45d073c

Browse files
igamigolima-limon-inc
authored andcommitted
chore: remove unwrap in favor of unwrap_or_else displaying the error
Signed-off-by: Tomas Fabrizio Orsi <tomas.orsi@lambdaclass.com>
1 parent 7db19f0 commit 45d073c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/miden-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async fn main() -> miette::Result<()> {
1010
// read command-line args
1111
let input = <MidenClientCLI as clap::CommandFactory>::command();
1212
let matches = input.get_matches();
13-
let parsed = MidenClientCLI::from_arg_matches(&matches).map_err(|err| err.exit()).unwrap();
13+
let parsed = MidenClientCLI::from_arg_matches(&matches).unwrap_or_else(|err| err.exit());
1414
let cli: Cli = parsed.into();
1515

1616
// execute cli action

0 commit comments

Comments
 (0)