Skip to content

Commit

Permalink
chore: fix clippy warning in serde_v8. (denoland#9917)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Mar 28, 2021
1 parent 7c7a62a commit 00468bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serde_v8/tests/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 3 additions & 1 deletion serde_v8/tests/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
};
Expand Down

0 comments on commit 00468bc

Please sign in to comment.