File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ impl Context {
151
151
pub fn build_deps (
152
152
& mut self ,
153
153
registry : & mut RegistryQueryer < ' _ > ,
154
- parent : Option < & Summary > ,
154
+ parent : Option < PackageId > ,
155
155
candidate : & Summary ,
156
156
method : & Method < ' _ > ,
157
157
) -> ActivateResult < Vec < DepInfo > > {
@@ -215,7 +215,7 @@ impl Context {
215
215
/// Returns all dependencies and the features we want from them.
216
216
pub fn resolve_features < ' b > (
217
217
& mut self ,
218
- parent : Option < & Summary > ,
218
+ parent : Option < PackageId > ,
219
219
s : & ' b Summary ,
220
220
method : & ' b Method < ' _ > ,
221
221
) -> ActivateResult < Vec < ( Dependency , Vec < InternedString > ) > > {
@@ -299,7 +299,7 @@ impl Context {
299
299
features
300
300
)
301
301
. into ( ) ,
302
- Some ( p) => ( p. package_id ( ) , ConflictReason :: MissingFeatures ( features) ) . into ( ) ,
302
+ Some ( p) => ( p, ConflictReason :: MissingFeatures ( features) ) . into ( ) ,
303
303
} ) ;
304
304
}
305
305
Original file line number Diff line number Diff line change @@ -682,7 +682,12 @@ fn activate(
682
682
} ;
683
683
684
684
let now = Instant :: now ( ) ;
685
- let deps = cx. build_deps ( registry, parent. map ( |p| p. 0 ) , & candidate, method) ?;
685
+ let deps = cx. build_deps (
686
+ registry,
687
+ parent. map ( |p| p. 0 . package_id ( ) ) ,
688
+ & candidate,
689
+ method,
690
+ ) ?;
686
691
let frame = DepsFrame {
687
692
parent : candidate,
688
693
just_for_error_messages : false ,
You can’t perform that action at this time.
0 commit comments