From d6f45417e384e102dc8220947a7215f3ba14caf4 Mon Sep 17 00:00:00 2001 From: Julien Delange Date: Wed, 13 Nov 2024 15:14:51 -0500 Subject: [PATCH] address feedback --- crates/cli/src/model/datadog_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/model/datadog_api.rs b/crates/cli/src/model/datadog_api.rs index dd54c536..5501e1c4 100644 --- a/crates/cli/src/model/datadog_api.rs +++ b/crates/cli/src/model/datadog_api.rs @@ -331,13 +331,13 @@ impl TryFrom for SecretRuleMatchValidation { timeout_seconds: value.timeout_seconds, valid_http_status_code: value .valid_http_status_code - .unwrap_or(vec![]) + .unwrap_or_default() .iter() .map(|v| v.into()) .collect(), invalid_http_status_code: value .invalid_http_status_code - .unwrap_or(vec![]) + .unwrap_or_default() .iter() .map(|v| v.into()) .collect(),