summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2019-12-20 12:58:52 -0500
committerMatan Kushner <hello@matchai.dev>2019-12-20 12:58:59 -0500
commit8cf4ce21d92ffc87af7ca4be7e1fa94afae01858 (patch)
treea3723ace73d6c86f9cc735352c6c429d173d551e
parentc30f2e90d1f95de69125e9b2a21e35015e7006ee (diff)
perf: Dereference before to_string in aws module
-rw-r--r--src/modules/aws.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/aws.rs b/src/modules/aws.rs
index c6fc8e92a..7962516d7 100644
--- a/src/modules/aws.rs
+++ b/src/modules/aws.rs
@@ -80,7 +80,7 @@ fn get_aws_region() -> Option<Region> {
fn alias_region(region: &str, aliases: &HashMap<String, &str>) -> String {
match aliases.get(region) {
None => region.to_string(),
- Some(alias) => alias.to_string(),
+ Some(alias) => (*alias).to_string(),
}
}