From 8cf4ce21d92ffc87af7ca4be7e1fa94afae01858 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Fri, 20 Dec 2019 12:58:52 -0500 Subject: [PATCH] perf: Dereference before to_string in aws module --- src/modules/aws.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/aws.rs b/src/modules/aws.rs index c6fc8e92..7962516d 100644 --- a/src/modules/aws.rs +++ b/src/modules/aws.rs @@ -80,7 +80,7 @@ fn get_aws_region() -> Option { fn alias_region(region: &str, aliases: &HashMap) -> String { match aliases.get(region) { None => region.to_string(), - Some(alias) => alias.to_string(), + Some(alias) => (*alias).to_string(), } }