From 5064133f1f59be9539ff6a2ebd830132b2379564 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sat, 15 Jun 2024 00:02:19 +0200 Subject: jsonrpc: separate the RPC errors from the library implementation errors --- jsonrpc/tests/impl_rpc_service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jsonrpc/tests/impl_rpc_service.rs') diff --git a/jsonrpc/tests/impl_rpc_service.rs b/jsonrpc/tests/impl_rpc_service.rs index e590ae1..bb42679 100644 --- a/jsonrpc/tests/impl_rpc_service.rs +++ b/jsonrpc/tests/impl_rpc_service.rs @@ -1,4 +1,4 @@ -use karyon_jsonrpc::{impl_rpc_service, Error, RPCService}; +use karyon_jsonrpc::{impl_rpc_service, RPCError, RPCService}; use serde_json::Value; #[test] @@ -6,7 +6,7 @@ fn service() { struct Foo {} impl Foo { - async fn foo(&self, params: Value) -> Result { + async fn foo(&self, params: Value) -> Result { Ok(params) } } -- cgit v1.2.3