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 authored and antoniospg committed Sep 8, 2024
1 parent 2fb863c commit 645ac10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cargo/ops/cargo_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,10 @@ fn required_rust_version(ws: &Workspace<'_>) -> Option<PartialVersion> {
}

fn report_latest(possibilities: &[IndexSummary], package: PackageId) -> Option<String> {
if !package.source_id().is_registry() {
return None;
}

possibilities
.iter()
.map(|s| s.as_summary())
Expand Down

0 comments on commit 645ac10

Please sign in to comment.