File tree 1 file changed +6
-8
lines changed
crates/spk-solve/crates/package-iterator/src
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -640,20 +640,18 @@ impl SortedBuildIterator {
640
640
self . builds . make_contiguous ( ) . sort_by_cached_key ( |hm| {
641
641
// Pull an arbitrary spec out from the hashmap
642
642
let spec = & hm. iter ( ) . next ( ) . expect ( "non-empty hashmap" ) . 1 . 0 ;
643
- SortedBuildIterator :: make_option_values_build_key (
643
+ // Reverse the sort to get the build with the highest
644
+ // "numbers" in the earlier parts of its key to come first,
645
+ // which also reverse sorts the text values, i.e. "on" will
646
+ // come before "off".
647
+ std:: cmp:: Reverse ( SortedBuildIterator :: make_option_values_build_key (
644
648
spec,
645
649
& key_entry_names,
646
650
& build_name_values,
647
651
builds_with_impossible_requests. contains_key ( & spec. ident ( ) . clone ( ) ) ,
648
- )
652
+ ) )
649
653
} ) ;
650
654
651
- // Reverse the sort to get the build with the highest
652
- // "numbers" in the earlier parts of its key to come first,
653
- // which also reverse sorts the text values, i.e. "on" will
654
- // come before "off".
655
- self . builds . make_contiguous ( ) . reverse ( ) ;
656
-
657
655
let duration: Duration = start. elapsed ( ) ;
658
656
tracing:: info!(
659
657
target: BUILD_SORT_TARGET ,
You can’t perform that action at this time.
0 commit comments