From 00468bceffc7bc13c33d175df6058959518f687f Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sun, 28 Mar 2021 20:39:46 +0530 Subject: [PATCH] chore: fix clippy warning in serde_v8. (#9917) --- serde_v8/tests/de.rs | 2 +- serde_v8/tests/ser.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/serde_v8/tests/de.rs b/serde_v8/tests/de.rs index 0762308191..2df93ae7ac 100644 --- a/serde_v8/tests/de.rs +++ b/serde_v8/tests/de.rs @@ -33,7 +33,7 @@ macro_rules! detest { fn $fn_name() { dedo($src, |scope, v| { let rt = serde_v8::from_v8(scope, v); - assert!(rt.is_ok(), format!("from_v8(\"{}\"): {:?}", $src, rt.err())); + assert!(rt.is_ok(), "from_v8(\"{}\"): {:?}", $src, rt.err()); let t: $t = rt.unwrap(); assert_eq!(t, $rust); }); diff --git a/serde_v8/tests/ser.rs b/serde_v8/tests/ser.rs index e110b693c9..2ae6065269 100644 --- a/serde_v8/tests/ser.rs +++ b/serde_v8/tests/ser.rs @@ -59,7 +59,9 @@ macro_rules! sertest { fn $fn_name() { assert!( sercheck($rust, $src), - format!("Expected: {} where x={:?}", $src, $rust), + "Expected: {} where x={:?}", + $src, + $rust, ); } };