Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 11, 2024
1 parent 7967f33 commit cac485a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tooling/nargo_cli/src/cli/test_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit cac485a

Please sign in to comment.