From 7914726938115921e7b6b5357b3f5212a24f4569 Mon Sep 17 00:00:00 2001 From: Ana Perez Ghiglia Date: Wed, 7 Aug 2024 18:35:53 -0300 Subject: [PATCH] run cargo fmt --- tooling/debugger/src/dap.rs | 13 ++++--------- tooling/nargo_cli/src/cli/dap_cmd.rs | 8 ++------ tooling/nargo_cli/src/cli/debug_cmd.rs | 3 ++- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/tooling/debugger/src/dap.rs b/tooling/debugger/src/dap.rs index 10dcf028b08..502cd98c379 100644 --- a/tooling/debugger/src/dap.rs +++ b/tooling/debugger/src/dap.rs @@ -670,15 +670,10 @@ pub fn run_session>( initial_witness: WitnessMap, test_function: Option, ) -> Result<(), ServerError> { - let debug_artifact = DebugArtifact { debug_symbols: program.debug.clone(), file_map: program.file_map.clone() }; - let mut session = DapSession::new( - server, - solver, - &program, - &debug_artifact, - initial_witness, - test_function, - ); + let debug_artifact = + DebugArtifact { debug_symbols: program.debug.clone(), file_map: program.file_map.clone() }; + let mut session = + DapSession::new(server, solver, &program, &debug_artifact, initial_witness, test_function); session.run_loop() } diff --git a/tooling/nargo_cli/src/cli/dap_cmd.rs b/tooling/nargo_cli/src/cli/dap_cmd.rs index f9b86182372..0123593f011 100644 --- a/tooling/nargo_cli/src/cli/dap_cmd.rs +++ b/tooling/nargo_cli/src/cli/dap_cmd.rs @@ -176,12 +176,8 @@ fn load_and_compile_test_function( let (mut context, crate_id) = prepare_package_for_debug(&workspace_file_manager, &mut parsed_files, package); - check_crate( - &mut context, - crate_id, - compile_options, - ) - .expect("Any errors should have occurred when collecting test functions"); + check_crate(&mut context, crate_id, compile_options) + .expect("Any errors should have occurred when collecting test functions"); let test_functions = context .get_all_test_functions_in_crate_matching(&crate_id, FunctionNameMatch::Exact(test_name)); diff --git a/tooling/nargo_cli/src/cli/debug_cmd.rs b/tooling/nargo_cli/src/cli/debug_cmd.rs index a571be9cc5d..0bda310bb87 100644 --- a/tooling/nargo_cli/src/cli/debug_cmd.rs +++ b/tooling/nargo_cli/src/cli/debug_cmd.rs @@ -184,7 +184,8 @@ fn run_async( } type DebugResult = Result, NargoError>; -type ExecutionResult = Result<(Option, WitnessStack), NargoError>; +type ExecutionResult = + Result<(Option, WitnessStack), NargoError>; // FIXME: We have nested results to differentiate between the execution result (the inner one - Nargo) // and setting up the debugger errors (outer one - CliErrors)