From 563fd1f6dbdd332bfcff1bc2b57857394ed4a535 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 16 May 2020 13:44:34 -0400 Subject: [PATCH] Starting comparison of json value to json value. --- src/bin.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin.rs b/src/bin.rs index 7e41d8d..afcf538 100644 --- a/src/bin.rs +++ b/src/bin.rs @@ -164,7 +164,12 @@ impl CompareContextElement for serde_json::Value { // Handle other serde_json::Value match other.to_any().downcast_ref::() { None => (), - Some(other_json_value) => return None, // TODO: Implement + Some(other_json_value) => { + return match (self, other_json_value) { + // TODO: Implement + _ => None, + }; + } } // Handle string literals match other.to_any().downcast_ref::() {