File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -674,9 +674,10 @@ impl<'gctx> Registry for PackageRegistry<'gctx> {
674
674
let patch = patches. remove ( 0 ) ;
675
675
match override_summary {
676
676
Some ( override_summary) => {
677
- let override_summary = override_summary. into_summary ( ) ;
678
- self . warn_bad_override ( & override_summary, & patch) ?;
679
- f ( IndexSummary :: Candidate ( self . lock ( override_summary) ) ) ;
677
+ self . warn_bad_override ( override_summary. as_summary ( ) , & patch) ?;
678
+ let override_summary =
679
+ override_summary. map_summary ( |summary| self . lock ( summary) ) ;
680
+ f ( override_summary) ;
680
681
}
681
682
None => f ( IndexSummary :: Candidate ( patch) ) ,
682
683
}
@@ -760,11 +761,11 @@ impl<'gctx> Registry for PackageRegistry<'gctx> {
760
761
"found an override with a non-locked list"
761
762
) ) ) ;
762
763
}
763
- let override_summary = override_summary. into_summary ( ) ;
764
764
if let Some ( to_warn) = to_warn {
765
- self . warn_bad_override ( & override_summary, to_warn. as_summary ( ) ) ?;
765
+ self . warn_bad_override ( override_summary. as_summary ( ) , to_warn. as_summary ( ) ) ?;
766
766
}
767
- f ( IndexSummary :: Candidate ( self . lock ( override_summary) ) ) ;
767
+ let override_summary = override_summary. map_summary ( |summary| self . lock ( summary) ) ;
768
+ f ( override_summary) ;
768
769
}
769
770
}
770
771
You can’t perform that action at this time.
0 commit comments