Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pubsub-client/src/pubsub_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ where
if let Ok(json_msg) = serde_json::from_str::<Map<String, Value>>(message_text) {
if let Some(Object(params)) = json_msg.get("params") {
if let Some(result) = params.get("result") {
if let Ok(x) = serde_json::from_value::<T>(result.clone()) {
if let Ok(x) = T::deserialize(result) {
return Ok(Some(x));
}
}
Expand Down
Loading