From 581022aa2e5564f1cac42858ed1eca5bf789a36e Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Wed, 27 Nov 2024 12:29:02 -0300 Subject: [PATCH] clippy --- zebra-rpc/src/server.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra-rpc/src/server.rs b/zebra-rpc/src/server.rs index bddf12d5826..4276ad5bf8c 100644 --- a/zebra-rpc/src/server.rs +++ b/zebra-rpc/src/server.rs @@ -211,7 +211,10 @@ impl RpcServer { .expect("Unable to get local address"); info!("{OPENED_RPC_ENDPOINT_MSG}{}", addr); + #[cfg(feature = "getblocktemplate-rpcs")] let mut rpc_module = rpc_impl.into_rpc(); + #[cfg(not(feature = "getblocktemplate-rpcs"))] + let rpc_module = rpc_impl.into_rpc(); #[cfg(feature = "getblocktemplate-rpcs")] rpc_module .merge(get_block_template_rpc_impl.into_rpc())