From 938e6e173d4808c7a3a68fa03adec3b2a4922c35 Mon Sep 17 00:00:00 2001 From: Nikhil Prabhu Date: Wed, 1 Jan 2025 21:47:25 +0530 Subject: [PATCH] refactor(aws): minor semantic changes --- src/blocking/providers/aws.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blocking/providers/aws.rs b/src/blocking/providers/aws.rs index 7a48f35..2f59738 100644 --- a/src/blocking/providers/aws.rs +++ b/src/blocking/providers/aws.rs @@ -63,7 +63,7 @@ impl Aws { let client = if let Ok(client) = Client::builder().timeout(timeout).build() { client } else { - tracing::error!("Error creating client"); + error!("Error creating client"); return false; }; @@ -287,7 +287,7 @@ mod tests { #[test] fn test_check_product_version_file_success() -> Result<()> { - let mut product_version_file = NamedTempFile::new().unwrap(); + let mut product_version_file = NamedTempFile::new()?; product_version_file.write_all("amazon".as_bytes())?; let provider = Aws;