perf: Dereference before to_string in aws module
This commit is contained in:
parent
c30f2e90d1
commit
8cf4ce21d9
|
@ -80,7 +80,7 @@ fn get_aws_region() -> Option<Region> {
|
||||||
fn alias_region(region: &str, aliases: &HashMap<String, &str>) -> String {
|
fn alias_region(region: &str, aliases: &HashMap<String, &str>) -> String {
|
||||||
match aliases.get(region) {
|
match aliases.get(region) {
|
||||||
None => region.to_string(),
|
None => region.to_string(),
|
||||||
Some(alias) => alias.to_string(),
|
Some(alias) => (*alias).to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue