Skip to content

Commit 07d83b9

Browse files
committed
lint
1 parent d3851ce commit 07d83b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/server/cloud/aws.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,9 @@ impl AwsService {
114114
.or_default_provider()
115115
.or_else(Region::new("us-east-1")),
116116
);
117-
match endpoint_url {
118-
Some(url) => config_provider = config_provider.endpoint_url(url),
119-
None => {}
120-
}
117+
if let Some(url) = endpoint_url {
118+
config_provider = config_provider.endpoint_url(url)
119+
};
121120
config_provider.load().await
122121
});
123122

src/server/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ pub enum ServerConfig {
8282
/// If `None`, the default region is used.
8383
/// The `default` region is based on the AWS SDK
8484
/// - <https://docs.aws.amazon.com/sdk-for-rust/latest/dg/region.html>
85+
///
8586
/// following, in order:
8687
/// 1. `AWS_REGION` environment variable,
8788
/// 2. `AWS_CONFIG_FILE` environment variable and the `region` in that file
8889
/// 3. `AWS_PROFILE` variable and the region for that file in the config file
8990
/// 4. The instance profile if running in an AWS compute environment
91+
///
9092
/// Failing all of those, we will default to `us-east-1`.
9193
region: Option<String>,
9294
/// Bucket in which to store the task data.

0 commit comments

Comments
 (0)