From f401d58f078a4dbd0befc5e2fba4b22e7dee86da Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 19 Jul 2023 12:53:36 +0200 Subject: [PATCH] Fix bug on rust client with void responses --- package.json | 2 +- templates/Rust/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4ecad40..e05f69b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/jrpcgen", - "version": "1.2.13", + "version": "1.2.14", "main": "lib/index.js", "license": "MIT", "packageManager": "yarn@3.1.1", diff --git a/templates/Rust/src/lib.rs b/templates/Rust/src/lib.rs index d474895..2dc2f96 100644 --- a/templates/Rust/src/lib.rs +++ b/templates/Rust/src/lib.rs @@ -79,7 +79,8 @@ impl JRPCClient { } else if let Some(result) = result.result { return Ok(result); } else { - return Err(format!("No result received").into()); + return Ok(Value::Null); + // return Err(format!("No result received").into()); } } else { return Err("Error while receiving result".into());