From c88309967353c953d3b038024339377f22b05f35 Mon Sep 17 00:00:00 2001 From: Shachar Langbeheim Date: Wed, 16 Aug 2023 10:55:21 +0000 Subject: [PATCH] Fix JSON serialization error test. The test was broken by version 1.0.105 of serde_json, due to https://github.com/serde-rs/json/pull/1055 . --- redis/tests/test_module_json.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redis/tests/test_module_json.rs b/redis/tests/test_module_json.rs index 49d3e51f5..c407518c7 100644 --- a/redis/tests/test_module_json.rs +++ b/redis/tests/test_module_json.rs @@ -30,14 +30,14 @@ fn test_module_json_serialize_error() { // so numbers and strings, anything else will cause the serialization to fail // this is basically the only way to make a serialization fail at runtime // since rust doesnt provide the necessary ability to enforce this - pub invalid_json: HashMap, + pub invalid_json: HashMap, i64>, } let mut test_invalid_value: InvalidSerializedStruct = InvalidSerializedStruct { invalid_json: HashMap::new(), }; - test_invalid_value.invalid_json.insert(true, 2i64); + test_invalid_value.invalid_json.insert(None, 2i64); let set_invalid: RedisResult = con.json_set(TEST_KEY, "$", &test_invalid_value);