From cac485a91576d1042c2c661662fa037f30b1abbe Mon Sep 17 00:00:00 2001 From: Ary Borenszweig Date: Wed, 11 Dec 2024 16:27:34 -0300 Subject: [PATCH] cargo fmt --- tooling/nargo_cli/src/cli/test_cmd.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tooling/nargo_cli/src/cli/test_cmd.rs b/tooling/nargo_cli/src/cli/test_cmd.rs index 7ebf222e88e..ecbc42ff38a 100644 --- a/tooling/nargo_cli/src/cli/test_cmd.rs +++ b/tooling/nargo_cli/src/cli/test_cmd.rs @@ -187,13 +187,13 @@ impl<'a> TestRunner<'a> { Ok((status, output)) => (status, output), Err(err) => ( TestStatus::Fail { - message: - // It seems `panic!("...")` makes the error be `&str`, so we handle this common case - if let Some(message) = err.downcast_ref::<&str>() { - message.to_string() - } else { - "An unexpected error happened".to_string() - }, + message: + // It seems `panic!("...")` makes the error be `&str`, so we handle this common case + if let Some(message) = err.downcast_ref::<&str>() { + message.to_string() + } else { + "An unexpected error happened".to_string() + }, error_diagnostic: None, }, String::new(),