Skip to content

Commit f1d6a94

Browse files
committed
Sorting
1 parent 2cc5bb0 commit f1d6a94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cargo/util/workspace.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn get_available_targets<'a>(
1111
) -> CargoResult<Vec<&'a Target>> {
1212
let packages = options.spec.get_packages(ws)?;
1313

14-
let targets: Vec<_> = packages
14+
let mut targets: Vec<_> = packages
1515
.into_iter()
1616
.flat_map(|pkg| {
1717
pkg.manifest()
@@ -20,6 +20,9 @@ fn get_available_targets<'a>(
2020
.filter(|target| filter_fn(target))
2121
})
2222
.collect();
23+
24+
targets.sort();
25+
2326
Ok(targets)
2427
}
2528

0 commit comments

Comments
 (0)