Skip to content

Commit

Permalink
perf: Dereference before to_string in aws module
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai committed Dec 20, 2019
1 parent c30f2e9 commit 8cf4ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
}

Expand Down

0 comments on commit 8cf4ce2

Please sign in to comment.