Support noop on all token types.

This commit is contained in:
Tom Alexander 2023-12-30 20:50:28 -05:00
parent d258cdb839
commit 3a6fc5b669
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -105,7 +105,7 @@ fn compare_json_value<'b, 's>(
(serde_json::Value::String(w), Token::Atom(e)) if w.as_str() == *e => {
Ok(WasmDiffResult::default())
}
(serde_json::Value::Object(w), Token::Atom(_)) if w.contains_key("noop") => {
(serde_json::Value::Object(w), _) if w.contains_key("noop") => {
Ok(WasmDiffResult::default())
}
(serde_json::Value::Null, Token::Atom(_)) => todo!(),