From 1716448296d39cb779d454858f1470a8b9d90ccb Mon Sep 17 00:00:00 2001 From: Spencer Ferris <3319370+spencewenski@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:51:22 -0700 Subject: [PATCH] style: Fix clippy error --- 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"]