Skip to content

Commit

Permalink
fix(update): Only show 'latest' messages for registry sources
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 14, 2024
1 parent 91a44a5 commit 374701e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cargo/ops/cargo_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,9 @@ fn report_latest(possibilities: &[IndexSummary], package: PackageId) -> Option<S
if possibilities.is_empty() {
return None;
}
if !package.source_id().is_registry() {
return None;
}

possibilities
.iter()
Expand Down

0 comments on commit 374701e

Please sign in to comment.