Skip to content

Commit 9f94719

Browse files
GuillaumeGomezsyphar
authored andcommitted
Sort platforms list
1 parent afe02eb commit 9f94719

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/web/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,17 @@ impl MetaData {
550550
}
551551

552552
fn parse_doc_targets(targets: Value) -> Vec<String> {
553-
targets
553+
let mut targets = targets
554554
.as_array()
555555
.map(|array| {
556556
array
557557
.iter()
558558
.filter_map(|item| item.as_str().map(|s| s.to_owned()))
559559
.collect()
560560
})
561-
.unwrap_or_else(Vec::new)
561+
.unwrap_or_else(Vec::new);
562+
targets.sort_unstable();
563+
targets
562564
}
563565
}
564566

0 commit comments

Comments
 (0)