From f710d94ed1b4e2fba851f56a71229266f1f6d2c8 Mon Sep 17 00:00:00 2001 From: Spencer Ferris <3319370+spencewenski@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:49:07 -0700 Subject: [PATCH] Resolve clippy errors --- src/api/cli/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/cli/mod.rs b/src/api/cli/mod.rs index b27ee913..fe8f2db1 100644 --- a/src/api/cli/mod.rs +++ b/src/api/cli/mod.rs @@ -159,10 +159,8 @@ mod tests { let args = if let Some(args) = args { args.split(' ').collect_vec() - } else if let Some(args) = arg_list { - args } else { - Default::default() + arg_list.unwrap_or_default() }; // The first word is interpreted as the binary name let args = vec!["binary_name"]