aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-registry/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart-registry/src')
-rw-r--r--crates/mozart-registry/src/installer_executor/filesystem.rs6
-rw-r--r--crates/mozart-registry/src/installer_executor/mod.rs5
-rw-r--r--crates/mozart-registry/src/installer_executor/trace_recorder.rs6
-rw-r--r--crates/mozart-registry/src/repository/packagist_repo.rs3
4 files changed, 8 insertions, 12 deletions
diff --git a/crates/mozart-registry/src/installer_executor/filesystem.rs b/crates/mozart-registry/src/installer_executor/filesystem.rs
index e36006c..185e5b9 100644
--- a/crates/mozart-registry/src/installer_executor/filesystem.rs
+++ b/crates/mozart-registry/src/installer_executor/filesystem.rs
@@ -138,10 +138,8 @@ fn install_from_source(
match source_type {
"git" => {
let process = mozart_vcs::process::ProcessExecutor::new();
- let git_util = mozart_vcs::util::git::GitUtil::new(
- process,
- vendor_dir.join(".cache").join("git"),
- );
+ let git_util =
+ mozart_vcs::util::git::GitUtil::new(process, vendor_dir.join(".cache").join("git"));
let downloader = mozart_vcs::downloader::git::GitDownloader::new(git_util);
use mozart_vcs::downloader::VcsDownloader;
downloader.download(url, reference, &target)?;
diff --git a/crates/mozart-registry/src/installer_executor/mod.rs b/crates/mozart-registry/src/installer_executor/mod.rs
index 1fab19f..c70fe12 100644
--- a/crates/mozart-registry/src/installer_executor/mod.rs
+++ b/crates/mozart-registry/src/installer_executor/mod.rs
@@ -40,8 +40,9 @@ pub enum PackageOperation<'a> {
impl<'a> PackageOperation<'a> {
pub fn package(&self) -> &'a LockedPackage {
match self {
- PackageOperation::Install { package }
- | PackageOperation::Update { package, .. } => package,
+ PackageOperation::Install { package } | PackageOperation::Update { package, .. } => {
+ package
+ }
}
}
}
diff --git a/crates/mozart-registry/src/installer_executor/trace_recorder.rs b/crates/mozart-registry/src/installer_executor/trace_recorder.rs
index bb20eb1..9fdc91b 100644
--- a/crates/mozart-registry/src/installer_executor/trace_recorder.rs
+++ b/crates/mozart-registry/src/installer_executor/trace_recorder.rs
@@ -58,10 +58,8 @@ impl InstallerExecutor for TraceRecorderExecutor {
) -> anyhow::Result<()> {
match op {
PackageOperation::Install { package } => {
- self.trace.push(format!(
- "Installing {} ({})",
- package.name, package.version
- ));
+ self.trace
+ .push(format!("Installing {} ({})", package.name, package.version));
}
PackageOperation::Update {
from_version,
diff --git a/crates/mozart-registry/src/repository/packagist_repo.rs b/crates/mozart-registry/src/repository/packagist_repo.rs
index a3bbf40..6f9b687 100644
--- a/crates/mozart-registry/src/repository/packagist_repo.rs
+++ b/crates/mozart-registry/src/repository/packagist_repo.rs
@@ -39,8 +39,7 @@ impl Repository for PackagistRepository {
// that distinction, so for now both surface as `Err` and the
// caller decides whether the loop wants to continue (transitive
// exploration) or abort (seed-time fetch failure).
- let versions =
- packagist::fetch_package_versions(query.name, &self.cache).await?;
+ let versions = packagist::fetch_package_versions(query.name, &self.cache).await?;
// A successful fetch counts as "this repo authoritatively knows
// the name", even if the version list is empty — mirrors
// Composer's `ArrayRepository::loadPackages` which adds the