summaryrefslogtreecommitdiffstats
path: root/src/modules/aws.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2022-11-05 12:40:46 +0100
committerGitHub <noreply@github.com>2022-11-05 12:40:46 +0100
commit6e38683c89eff3a365f2a4affed971a627bf261b (patch)
tree4e311688e845eeb32cefd302979216f058186c12 /src/modules/aws.rs
parent9b64f518c969187e98a4b62ee9f7827ad11d7d22 (diff)
chore: fix new clippy lints (#4557)
Diffstat (limited to 'src/modules/aws.rs')
-rw-r--r--src/modules/aws.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/aws.rs b/src/modules/aws.rs
index 668d4ab29..6c5411b0a 100644
--- a/src/modules/aws.rs
+++ b/src/modules/aws.rs
@@ -66,7 +66,7 @@ fn get_profile_config<'a>(
profile: &Option<Profile>,
) -> Option<&'a ini::Properties> {
match profile {
- Some(profile) => config.section(Some(format!("profile {}", profile))),
+ Some(profile) => config.section(Some(format!("profile {profile}"))),
None => config.section(Some("default")),
}
}
@@ -701,7 +701,7 @@ aws_secret_access_key=dummy
"30m2s", "30m1s", "30m", "29m59s", "29m58s", "29m57s", "29m56s", "29m55s",
];
let possible_values = possible_values.map(|duration| {
- let segment_colored = format!("☁️ astronauts (ap-northeast-2) [{}] ", duration);
+ let segment_colored = format!("☁️ astronauts (ap-northeast-2) [{duration}] ");
Some(format!(
"on {}",
Color::Yellow.bold().paint(segment_colored)
@@ -762,7 +762,7 @@ aws_secret_access_key=dummy
"on {}",
Color::Yellow
.bold()
- .paint(format!("☁️ astronauts (ap-northeast-2) [{}] ", symbol))
+ .paint(format!("☁️ astronauts (ap-northeast-2) [{symbol}] "))
));
assert_eq!(expected, actual);