From b2e0e885657f396329eaa1f2fef7a3a61fda8356 Mon Sep 17 00:00:00 2001 From: J H Date: Fri, 22 Dec 2023 15:11:15 -0700 Subject: [PATCH] wip: Fixed with it compiling --- rpc-toolkit/tests/handler.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rpc-toolkit/tests/handler.rs b/rpc-toolkit/tests/handler.rs index 6c8b46a..9e8f51e 100644 --- a/rpc-toolkit/tests/handler.rs +++ b/rpc-toolkit/tests/handler.rs @@ -115,18 +115,18 @@ fn make_api() -> ParentHandler { }), ) .subcommand("a_hello", from_fn_async(a_hello)) - // .subcommand_with_inherited( - // "inherited", - // ParentHandler::::new().subcommand_no_cli( - // "echo_no_cli", - // from_fn(|c: CliContext| { - // Ok::<_, RpcError>( - // format!("Subcommand No Cli: Host {host}", host = c.host()).to_string(), - // ) - // }), - // ), - // |InheritParams { donde }, _| InheritParams { donde }, - // ) + .subcommand( + "dondes", + ParentHandler::::new().subcommand_with_inherited_no_cli( + "donde", + from_fn(|c: CliContext, _: (), donde| { + Ok::<_, RpcError>( + format!("Subcommand No Cli: Host {host}", host = c.host()).to_string(), + ) + }), + |InheritParams { donde }, _| donde, + ), + ) } pub fn internal_error(e: impl Display) -> RpcError {