summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-06-27 08:35:23 +0000
committerBlaž Hrastnik2022-06-27 08:35:23 +0000
commit425de09d217002d3b7c6cad864015277cfe041a1 (patch)
tree3e4c4f4fbeb7ce03570f0b45b002d8bb2ad2b84c
parent24f03097e3b4aef62aa56bb27e0853b60a4cb417 (diff)
Fix tests again
-rw-r--r--helix-lsp/src/jsonrpc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/jsonrpc.rs b/helix-lsp/src/jsonrpc.rs
index ed63da13..b9b3fd2c 100644
--- a/helix-lsp/src/jsonrpc.rs
+++ b/helix-lsp/src/jsonrpc.rs
@@ -310,7 +310,7 @@ fn method_call_serialize() {
id: Id::Num(1),
};
- let serialized = serde_json::json!(&m);
+ let serialized = serde_json::to_string(&m).unwrap();
assert_eq!(
serialized,
r#"{"jsonrpc":"2.0","method":"update","params":[1,2],"id":1}"#
@@ -327,7 +327,7 @@ fn notification_serialize() {
params: Params::Array(vec![Value::from(1), Value::from(2)]),
};
- let serialized = serde_json::json!(&n);
+ let serialized = serde_json::to_string(&n).unwrap();
assert_eq!(
serialized,
r#"{"jsonrpc":"2.0","method":"update","params":[1,2]}"#