diff --git a/src/cargo/ops/cargo_install.rs b/src/cargo/ops/cargo_install.rs index 77b8ba8456d..388b3ac54e9 100644 --- a/src/cargo/ops/cargo_install.rs +++ b/src/cargo/ops/cargo_install.rs @@ -8,7 +8,7 @@ use tempfile::Builder as TempFileBuilder; use crate::core::compiler::{DefaultExecutor, Executor}; use crate::core::{Edition, Package, Source, SourceId}; use crate::core::{PackageId, Workspace}; -use crate::ops::utils::*; +use crate::ops::common_for_install_and_uninstall::*; use crate::ops::{self, CompileFilter}; use crate::sources::{GitSource, SourceConfigMap}; use crate::util::errors::{CargoResult, CargoResultExt}; diff --git a/src/cargo/ops/cargo_uninstall.rs b/src/cargo/ops/cargo_uninstall.rs index 80f46b55127..3ffa7dd05cf 100644 --- a/src/cargo/ops/cargo_uninstall.rs +++ b/src/cargo/ops/cargo_uninstall.rs @@ -3,7 +3,7 @@ use std::{env, fs}; use crate::core::PackageId; use crate::core::{PackageIdSpec, SourceId}; -use crate::ops::utils::*; +use crate::ops::common_for_install_and_uninstall::*; use crate::util::errors::CargoResult; use crate::util::paths; use crate::util::Config; diff --git a/src/cargo/ops/utils.rs b/src/cargo/ops/common_for_install_and_uninstall.rs similarity index 100% rename from src/cargo/ops/utils.rs rename to src/cargo/ops/common_for_install_and_uninstall.rs diff --git a/src/cargo/ops/mod.rs b/src/cargo/ops/mod.rs index 2e4df7e1ba4..f12f66bef9c 100644 --- a/src/cargo/ops/mod.rs +++ b/src/cargo/ops/mod.rs @@ -41,8 +41,8 @@ mod cargo_read_manifest; mod cargo_run; mod cargo_test; mod cargo_uninstall; +mod common_for_install_and_uninstall; mod fix; mod lockfile; mod registry; mod resolve; -mod utils;