From e22dfca8dd2286179654f8bc9252237dcbe4e5f3 Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Wed, 19 Jun 2024 09:14:42 +0200 Subject: [PATCH] clippy issue --- .../minotari_console_wallet/src/grpc/wallet_grpc_server.rs | 1 + base_layer/tari_mining_helper_ffi/src/error.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/applications/minotari_console_wallet/src/grpc/wallet_grpc_server.rs b/applications/minotari_console_wallet/src/grpc/wallet_grpc_server.rs index a51421b82d..122be85828 100644 --- a/applications/minotari_console_wallet/src/grpc/wallet_grpc_server.rs +++ b/applications/minotari_console_wallet/src/grpc/wallet_grpc_server.rs @@ -142,6 +142,7 @@ pub struct WalletGrpcServer { } impl WalletGrpcServer { + #[allow(dead_code)] pub fn new(wallet: WalletSqlite) -> Result { let rules = ConsensusManager::builder(wallet.network.as_network()).build()?; Ok(Self { wallet, rules }) diff --git a/base_layer/tari_mining_helper_ffi/src/error.rs b/base_layer/tari_mining_helper_ffi/src/error.rs index e9fea91c8d..a897160201 100644 --- a/base_layer/tari_mining_helper_ffi/src/error.rs +++ b/base_layer/tari_mining_helper_ffi/src/error.rs @@ -49,6 +49,7 @@ pub enum InterfaceError { /// This struct is meant to hold an error for use by Miningcore. The error has an integer code and string /// message #[derive(Debug, Clone)] +#[allow(dead_code)] pub struct MiningHelperError { pub code: i32, pub message: String,