From ab9342d667fddd9c310a92317fadf9b0afa1d181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Cabrera?= Date: Mon, 8 Jul 2024 16:20:49 -0400 Subject: [PATCH] Fixes --- fuzz/fuzz_targets/json_differential.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/fuzz/fuzz_targets/json_differential.rs b/fuzz/fuzz_targets/json_differential.rs index 7341acef..d71a7fd3 100644 --- a/fuzz/fuzz_targets/json_differential.rs +++ b/fuzz/fuzz_targets/json_differential.rs @@ -45,11 +45,7 @@ fn exec(data: &ArbitraryValue) -> Result<()> { let result: Result<(), _> = cx.eval(JSON_PROGRAM); if let Err(e) = result { - panic!( - "{}\n{}", - from_js_error(cx.clone(), e).to_string(), - data.to_string() - ); + panic!("{}\n{}", from_js_error(cx.clone(), e), **data,); } output = globals.get("OUTPUT")?; @@ -64,11 +60,7 @@ fn exec(data: &ArbitraryValue) -> Result<()> { let result: Result<(), _> = cx.eval(JSON_PROGRAM); if let Err(e) = result { - panic!( - "{}\n{}", - from_js_error(cx.clone(), e).to_string(), - data.to_string() - ); + panic!("{}\n{}", from_js_error(cx.clone(), e), **data); } ref_output = globals.get("OUTPUT")?;