1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-26 03:27:30 +00:00

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

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