mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-25 19:21:08 +00:00
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 {
|
||||
match aliases.get(region) {
|
||||
None => region.to_string(),
|
||||
Some(alias) => alias.to_string(),
|
||||
Some(alias) => (*alias).to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user