diff --git a/momento/src/commands/cloud_linter/dynamodb.rs b/momento/src/commands/cloud_linter/dynamodb.rs index ed76dbfa..ea6d9d6f 100644 --- a/momento/src/commands/cloud_linter/dynamodb.rs +++ b/momento/src/commands/cloud_linter/dynamodb.rs @@ -29,7 +29,7 @@ pub(crate) async fn get_ddb_metadata( config: &SdkConfig, limiter: Arc, ) -> Result, CliError> { - let ddb_client = aws_sdk_dynamodb::Client::new(&config); + let ddb_client = aws_sdk_dynamodb::Client::new(config); console_info!("Listing Dynamo DB tables"); let table_names = list_table_names(&ddb_client, Arc::clone(&limiter)).await?; diff --git a/momento/src/commands/cloud_linter/elasticache.rs b/momento/src/commands/cloud_linter/elasticache.rs index 319f9b55..1e49b881 100644 --- a/momento/src/commands/cloud_linter/elasticache.rs +++ b/momento/src/commands/cloud_linter/elasticache.rs @@ -23,7 +23,7 @@ pub(crate) async fn get_elasticache_metadata( limiter: Arc, ) -> Result, CliError> { console_info!("Describing ElastiCache clusters"); - let elasticache_client = aws_sdk_elasticache::Client::new(&config); + let elasticache_client = aws_sdk_elasticache::Client::new(config); list_table_names(&elasticache_client, limiter) .await? .into_iter() @@ -104,11 +104,9 @@ impl TryFrom for ElastiCacheMetadata { preferred_az, cluster_mode_enabled: false, }), - _ => { - return Err(CliError { - msg: format!("Unsupported engine: {}", engine), - }) - } + _ => Err(CliError { + msg: format!("Unsupported engine: {}", engine), + }), } } }