From 7100ce12107732c1dedcea05344620d1e52857f0 Mon Sep 17 00:00:00 2001 From: Grzegorz Swirski Date: Wed, 20 Sep 2023 21:34:48 +0200 Subject: [PATCH] formatting --- src/app.rs | 9 +++------ src/opt.rs | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app.rs b/src/app.rs index 53714f3..d6cbd86 100644 --- a/src/app.rs +++ b/src/app.rs @@ -59,10 +59,9 @@ pub(crate) fn run(mut app_config: AppConfig) -> Result<()> { #[cfg(target_arch = "aarch64")] codesign(&target_filepath, &workspace)?; - if let Target::Test(_, ref tests) = cargo_options.target { app_config.target_args.insert(0, tests.clone()); - } + } // 4. Profile the built target, will display menu if no template was selected let trace_filepath = @@ -139,7 +138,7 @@ fn codesign(path: &Path, workspace: &Workspace) -> Result<()> { /// the path to the built executable. fn build_target(cargo_options: &CargoOpts, workspace: &Workspace) -> Result { use cargo::core::shell::Verbosity; - workspace.config().shell().set_verbosity(Verbosity::Verbose); + workspace.config().shell().set_verbosity(Verbosity::Normal); let compile_options = make_compile_opts(cargo_options, workspace.config())?; let result = cargo::ops::compile(workspace, &compile_options)?; @@ -155,9 +154,7 @@ fn build_target(cargo_options: &CargoOpts, workspace: &Workspace) -> Result