We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac9c4e3 commit 933ba6eCopy full SHA for 933ba6e
src/cargo/sources/registry/index/mod.rs
@@ -169,12 +169,7 @@ impl IndexSummary {
169
170
/// Extract the package id from any variant
171
pub fn package_id(&self) -> PackageId {
172
- match self {
173
- IndexSummary::Candidate(sum)
174
- | IndexSummary::Yanked(sum)
175
- | IndexSummary::Offline(sum)
176
- | IndexSummary::Unsupported(sum, _) => sum.package_id(),
177
- }
+ self.as_summary().package_id()
178
}
179
180
/// Returns `true` if the index summary is [`Yanked`].
0 commit comments