Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
style: fix with cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed Jan 9, 2024
1 parent f559170 commit a8e244b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ pub fn get_locale_list() -> Result<Vec<(&'static str, &'static str, &'static str
let mut res = res.1;
res.sort_unstable_by(|a, b| a.0.cmp(b.0));

for i in ["English (United States)", "English (United Kingdom)", "Chinese (Traditional)", "Chinese (Simplified)"] {
for i in [
"English (United States)",
"English (United Kingdom)",
"Chinese (Traditional)",
"Chinese (Simplified)",
] {
let pos = res.iter().position(|x| x.2 == i).unwrap();
let entry = res.remove(pos);
res.insert(0, entry);
Expand Down

0 comments on commit a8e244b

Please sign in to comment.