Skip to content

Commit a57bd47

Browse files
committedFeb 19, 2020
Format
1 parent 39ed411 commit a57bd47

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/lib.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ macro_rules! assert_json_include {
186186
(actual: $actual:expr, expected: $expected:expr) => {{
187187
let actual: serde_json::Value = $actual;
188188
let expected: serde_json::Value = $expected;
189-
if let Err(error) =
190-
$crate::assert_json_no_panic(actual, expected, $crate::Mode::Lenient)
191-
{
189+
if let Err(error) = $crate::assert_json_no_panic(actual, expected, $crate::Mode::Lenient) {
192190
panic!("\n\n{}\n\n", error);
193191
}
194192
}};
@@ -213,9 +211,7 @@ macro_rules! assert_json_eq {
213211
($lhs:expr, $rhs:expr) => {{
214212
let actual: serde_json::Value = $lhs;
215213
let expected: serde_json::Value = $rhs;
216-
if let Err(error) =
217-
$crate::assert_json_no_panic(actual, expected, $crate::Mode::Strict)
218-
{
214+
if let Err(error) = $crate::assert_json_no_panic(actual, expected, $crate::Mode::Strict) {
219215
panic!("\n\n{}\n\n", error);
220216
}
221217
}};

0 commit comments

Comments
 (0)
Please sign in to comment.