Skip to content

Commit e48a008

Browse files
committed
refactor(registry): Pass along original IndexSummary state for deps
1 parent 0160cb7 commit e48a008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/core/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,8 @@ impl<'gctx> Registry for PackageRegistry<'gctx> {
733733
return;
734734
}
735735
}
736-
let summary = summary.into_summary();
737-
f(IndexSummary::Candidate(lock(locked, all_patches, summary)))
736+
let summary = summary.map_summary(|summary| lock(locked, all_patches, summary));
737+
f(summary)
738738
};
739739
return source.query(dep, kind, callback);
740740
}

0 commit comments

Comments
 (0)