From 663729aad96bfe326bd8116ae9322006eaf2ab11 Mon Sep 17 00:00:00 2001 From: anaslimem Date: Tue, 31 Mar 2026 15:32:47 +0100 Subject: [PATCH] fix(rpc): use RawValue::NULL constant instead of from_string().unwrap() --- src/agent-client-protocol/src/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent-client-protocol/src/rpc.rs b/src/agent-client-protocol/src/rpc.rs index 07280a9..f10d4ef 100644 --- a/src/agent-client-protocol/src/rpc.rs +++ b/src/agent-client-protocol/src/rpc.rs @@ -230,7 +230,7 @@ where } else { broadcast.incoming_response(id, Ok(None)); - let result = (pending_response.deserialize)(&RawValue::from_string("null".into()).unwrap()); + let result = (pending_response.deserialize)(RawValue::NULL); pending_response.respond.send(result).ok(); } } else {