From 825a138cf3fed1941b2c332dcbcb06a2cfe3e6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Fri, 26 Jan 2024 15:48:49 +0000 Subject: [PATCH] clippy --- common/nymcoconut/src/scheme/verification.rs | 2 +- .../client_handling/websocket/connection_handler/coconut.rs | 4 ++++ gateway/src/node/storage/models.rs | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common/nymcoconut/src/scheme/verification.rs b/common/nymcoconut/src/scheme/verification.rs index fc7fb67897..c529919aec 100644 --- a/common/nymcoconut/src/scheme/verification.rs +++ b/common/nymcoconut/src/scheme/verification.rs @@ -54,7 +54,7 @@ impl TryFrom<&[u8]> for Theta { let blinded_serial_number_bytes = &bytes[96..192]; let blinded_serial_number = - BlindedSerialNumber::try_from_byte_slice(&blinded_serial_number_bytes)?; + BlindedSerialNumber::try_from_byte_slice(blinded_serial_number_bytes)?; let credential = Signature::try_from(&bytes[192..288])?; diff --git a/gateway/src/node/client_handling/websocket/connection_handler/coconut.rs b/gateway/src/node/client_handling/websocket/connection_handler/coconut.rs index f83179ff85..f24518b883 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/coconut.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/coconut.rs @@ -23,6 +23,7 @@ use tokio::sync::{RwLock, RwLockReadGuard}; pub(crate) const BANDWIDTH_PER_CREDENTIAL: u64 = 1024 * 1024 * 1024; // 1GB pub(crate) struct CoconutVerifier { + #[allow(dead_code)] address: AccountId, nyxd_client: RwLock, @@ -31,6 +32,8 @@ pub(crate) struct CoconutVerifier { // keys never change during epochs master_keys: RwLock>, + + #[allow(dead_code)] mix_denom_base: String, } @@ -153,6 +156,7 @@ impl CoconutVerifier { Ok(all_coconut_api_clients(self.nyxd_client.read().await.deref(), epoch_id).await?) } + #[allow(dead_code)] pub async fn release_funds( &self, api_clients: &[CoconutApiClient], diff --git a/gateway/src/node/storage/models.rs b/gateway/src/node/storage/models.rs index 657a07f534..074324d608 100644 --- a/gateway/src/node/storage/models.rs +++ b/gateway/src/node/storage/models.rs @@ -23,6 +23,8 @@ pub(crate) struct PersistedBandwidth { #[derive(Debug, Clone, FromRow)] pub(crate) struct SpentCredential { + #[allow(dead_code)] pub(crate) blinded_serial_number_bs58: String, + #[allow(dead_code)] pub(crate) client_address_bs58: String, }