perf: Dereference before to_string in aws module

This commit is contained in:
Matan Kushner 2019-12-20 12:58:52 -05:00
parent c30f2e90d1
commit 8cf4ce21d9
No known key found for this signature in database
GPG Key ID: 4B98C3A8949CA8A4
1 changed files with 1 additions and 1 deletions

View File

@ -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(),
}
}