Skip to content

Commit e4a24b7

Browse files
committed
refactor(update): Be consistent in what source we interact with
1 parent 87850c2 commit e4a24b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/ops/cargo_update.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ fn print_lockfile_sync(
563563
let latest = report_latest(&possibilities, package_id);
564564
let note = required_rust_version.or(latest).unwrap_or_default();
565565

566-
let msg = if previous_id.source_id().is_git() {
566+
let msg = if package_id.source_id().is_git() {
567567
format!(
568568
"{previous_id} -> #{}",
569569
&package_id.source_id().precise_git_fragment().unwrap()[..8],
@@ -636,7 +636,7 @@ fn print_lockfile_updates(
636636
let latest = report_latest(&possibilities, package_id);
637637
let note = required_rust_version.or(latest).unwrap_or_default();
638638

639-
let msg = if previous_id.source_id().is_git() {
639+
let msg = if package_id.source_id().is_git() {
640640
format!(
641641
"{previous_id} -> #{}{note}",
642642
&package_id.source_id().precise_git_fragment().unwrap()[..8],

0 commit comments

Comments
 (0)