From 5587af7caf1f4e96a56c6dc35b13f84c99987f20 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Tue, 26 Mar 2024 16:20:19 -0400 Subject: [PATCH] refactor: remove unnecessary export so no need to deal with lock acquisitions --- src/cargo/ops/cargo_generate_lockfile.rs | 2 +- src/cargo/ops/mod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_generate_lockfile.rs b/src/cargo/ops/cargo_generate_lockfile.rs index 87aa7242395..d6fdc3d94a0 100644 --- a/src/cargo/ops/cargo_generate_lockfile.rs +++ b/src/cargo/ops/cargo_generate_lockfile.rs @@ -331,7 +331,7 @@ fn print_lockfile_sync( Ok(()) } -pub fn print_lockfile_updates( +fn print_lockfile_updates( gctx: &GlobalContext, previous_resolve: &Resolve, resolve: &Resolve, diff --git a/src/cargo/ops/mod.rs b/src/cargo/ops/mod.rs index 9a751793da2..3b4c74c8922 100644 --- a/src/cargo/ops/mod.rs +++ b/src/cargo/ops/mod.rs @@ -9,7 +9,6 @@ pub use self::cargo_doc::{doc, DocOptions, OutputFormat}; pub use self::cargo_fetch::{fetch, FetchOptions}; pub use self::cargo_generate_lockfile::generate_lockfile; pub use self::cargo_generate_lockfile::print_lockfile_changes; -pub use self::cargo_generate_lockfile::print_lockfile_updates; pub use self::cargo_generate_lockfile::update_lockfile; pub use self::cargo_generate_lockfile::UpdateOptions; pub use self::cargo_install::{install, install_list};