Skip to content

Commit 9bf5da6

Browse files
authored
fix(rpc): use RawValue::NULL constant instead of from_string().unwrap() (#96)
1 parent 23ab9bf commit 9bf5da6

File tree

1 file changed

+1
-1
lines changed
  • src/agent-client-protocol/src

1 file changed

+1
-1
lines changed

src/agent-client-protocol/src/rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ where
230230
} else {
231231
broadcast.incoming_response(id, Ok(None));
232232

233-
let result = (pending_response.deserialize)(&RawValue::from_string("null".into()).unwrap());
233+
let result = (pending_response.deserialize)(RawValue::NULL);
234234
pending_response.respond.send(result).ok();
235235
}
236236
} else {

0 commit comments

Comments
 (0)