We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d2d01 commit 88c9a12Copy full SHA for 88c9a12
src/tests.rs
@@ -24,7 +24,7 @@ macro_rules! JArray {
24
}
25
26
fn almost_equals(a: &Value, b: &Value) -> bool {
27
- let var_name = match (a, b) {
+ match (a, b) {
28
(Value::Number(a), Value::Number(b)) => {
29
let a = a.as_f64().unwrap();
30
let b = b.as_f64().unwrap();
@@ -39,8 +39,7 @@ fn almost_equals(a: &Value, b: &Value) -> bool {
39
(&Value::Object(_), &Value::Object(_)) => panic!("Not implemented"),
40
(&Value::Null, &Value::Null) => true,
41
_ => false,
42
- };
43
- var_name
+ }
44
45
46
fn normalize(json: &mut Value) {
0 commit comments