Skip to content

Commit a4c4c2d

Browse files
committed
fix(update): Only show 'latest' messages for registry sources
1 parent 497c8b6 commit a4c4c2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cargo/ops/cargo_update.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,10 @@ fn required_rust_version(ws: &Workspace<'_>) -> Option<PartialVersion> {
752752
}
753753

754754
fn report_latest(possibilities: &[IndexSummary], package: PackageId) -> Option<String> {
755+
if !package.source_id().is_registry() {
756+
return None;
757+
}
758+
755759
possibilities
756760
.iter()
757761
.map(|s| s.as_summary())

0 commit comments

Comments
 (0)