aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart')
-rw-r--r--crates/mozart/Cargo.toml2
-rw-r--r--crates/mozart/src/commands/audit.rs3
-rw-r--r--crates/mozart/src/commands/base_config.rs3
-rw-r--r--crates/mozart/src/commands/create_project.rs3
-rw-r--r--crates/mozart/src/commands/repository.rs5
-rw-r--r--crates/mozart/tests/installer.rs5
6 files changed, 8 insertions, 13 deletions
diff --git a/crates/mozart/Cargo.toml b/crates/mozart/Cargo.toml
index b8b3c06..4fef18a 100644
--- a/crates/mozart/Cargo.toml
+++ b/crates/mozart/Cargo.toml
@@ -22,8 +22,8 @@ sha1.workspace = true
tempfile.workspace = true
terminal_size.workspace = true
tokio.workspace = true
-tracing-subscriber.workspace = true
tracing.workspace = true
+tracing-subscriber.workspace = true
url.workspace = true
[dev-dependencies]
diff --git a/crates/mozart/src/commands/audit.rs b/crates/mozart/src/commands/audit.rs
index 5193b06..8b28770 100644
--- a/crates/mozart/src/commands/audit.rs
+++ b/crates/mozart/src/commands/audit.rs
@@ -1,5 +1,3 @@
-use std::path::Path;
-
use crate::composer::Composer;
use clap::Args;
use indexmap::IndexMap;
@@ -8,6 +6,7 @@ use mozart_core::console::IoInterface;
use mozart_core::repository::advisory::{AuditOptions, Auditor, PackageInfo};
use mozart_core::repository::cache::{Cache, build_cache_config};
use mozart_core::repository::repository::RepositorySet;
+use std::path::Path;
#[derive(Args)]
pub struct AuditArgs {
diff --git a/crates/mozart/src/commands/base_config.rs b/crates/mozart/src/commands/base_config.rs
index c10e7e7..ed05184 100644
--- a/crates/mozart/src/commands/base_config.rs
+++ b/crates/mozart/src/commands/base_config.rs
@@ -1,7 +1,6 @@
-use std::path::PathBuf;
-
use mozart_core::composer::composer_home;
use mozart_core::config_source::JsonConfigSource;
+use std::path::PathBuf;
/// Mirrors Composer's `BaseConfigCommand`: resolves the target config file path
/// and enforces the `--file` ↔ `--global` mutual exclusivity.
diff --git a/crates/mozart/src/commands/create_project.rs b/crates/mozart/src/commands/create_project.rs
index 49354d1..fd2edfa 100644
--- a/crates/mozart/src/commands/create_project.rs
+++ b/crates/mozart/src/commands/create_project.rs
@@ -1,3 +1,4 @@
+use crate::factory::create_download_manager;
use clap::Args;
use indexmap::IndexMap;
use mozart_core::console::IoInterface;
@@ -12,8 +13,6 @@ use mozart_core::repository::version;
use mozart_core::validation;
use std::path::{Path, PathBuf};
-use crate::factory::create_download_manager;
-
#[derive(Args)]
pub struct CreateProjectArgs {
/// Package name to install
diff --git a/crates/mozart/src/commands/repository.rs b/crates/mozart/src/commands/repository.rs
index 6616352..fe94eac 100644
--- a/crates/mozart/src/commands/repository.rs
+++ b/crates/mozart/src/commands/repository.rs
@@ -1,11 +1,10 @@
+use super::base_config::BaseConfigContext;
+use super::config_helpers::{normalize_repositories, render_value};
use anyhow::anyhow;
use clap::Args;
use mozart_core::console::IoInterface;
use mozart_core::console_writeln;
-use super::base_config::BaseConfigContext;
-use super::config_helpers::{normalize_repositories, render_value};
-
#[derive(Args)]
pub struct RepositoryArgs {
/// Action (list, add, remove, set-url, get-url, enable, disable)
diff --git a/crates/mozart/tests/installer.rs b/crates/mozart/tests/installer.rs
index fbeba6d..c96e3b4 100644
--- a/crates/mozart/tests/installer.rs
+++ b/crates/mozart/tests/installer.rs
@@ -8,9 +8,6 @@
//! EXPECT-LOCK + EXPECT-INSTALLED — the same load-bearing assertions
//! Composer's PHPUnit suite uses.
-use std::path::{Path, PathBuf};
-use std::sync::{Arc, Mutex};
-
use clap::Parser;
use mozart::commands::{Cli, Commands, install, update};
use mozart_core::console::{Console, IoInterface};
@@ -18,6 +15,8 @@ use mozart_core::exit_code::MozartError;
use mozart_core::repository::installer_executor::TraceRecorderExecutor;
use mozart_core::repository::repository::RepositorySet;
use mozart_test_harness::{ParsedTest, parse_test_file};
+use std::path::{Path, PathBuf};
+use std::sync::{Arc, Mutex};
use tempfile::TempDir;
fn fixtures_dir() -> PathBuf {