mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
perf: Dereference before to_string in aws module
This commit is contained in:
+1
-1
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user