From 1f037acd85b4e33072112147263cdb7b6280317b Mon Sep 17 00:00:00 2001 From: Odysseas Gabrielides Date: Thu, 10 Oct 2024 10:33:51 +0300 Subject: [PATCH] clippy fixes --- dash-spv-masternode-processor/src/bindings/keys.rs | 2 -- dash-spv-masternode-processor/src/keys/bls_key.rs | 5 +---- dash-spv-masternode-processor/src/keys/key.rs | 2 -- dash-spv-masternode-processor/src/tests/bindings/keys.rs | 2 -- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/dash-spv-masternode-processor/src/bindings/keys.rs b/dash-spv-masternode-processor/src/bindings/keys.rs index 361dd279..9041b547 100644 --- a/dash-spv-masternode-processor/src/bindings/keys.rs +++ b/dash-spv-masternode-processor/src/bindings/keys.rs @@ -21,8 +21,6 @@ use crate::processing::keys_cache::KeysCache; use crate::types::opaque_key::{AsCStringPtr, AsOpaqueKey, OpaqueKey, KeyWithUniqueId, OpaqueKeys, OpaqueSerializedKeys}; use crate::util::address::address; use crate::util::sec_vec::SecVec; -#[cfg(feature = "use_serde")] -use serde::{Deserialize, Deserializer, Serialize, Serializer}; /// Destroys /// # Safety diff --git a/dash-spv-masternode-processor/src/keys/bls_key.rs b/dash-spv-masternode-processor/src/keys/bls_key.rs index 940819c1..937c8903 100644 --- a/dash-spv-masternode-processor/src/keys/bls_key.rs +++ b/dash-spv-masternode-processor/src/keys/bls_key.rs @@ -1,7 +1,6 @@ use bls_signatures::bip32::{ChainCode, ExtendedPrivateKey, ExtendedPublicKey}; use bls_signatures::{BasicSchemeMPL, BlsError, G1Element, G2Element, LegacySchemeMPL, PrivateKey, Scheme}; -use hashes::{Hash, hex::FromHex, sha256, sha256d, hex}; -use hashes::hex::ToHex; +use hashes::{Hash, hex::FromHex, sha256, sha256d}; use crate::chain::{derivation::IIndexPath, ScriptMap}; use crate::consensus::Encodable; use crate::crypto::{UInt256, UInt384, UInt768, byte_util::{AsBytes, BytesDecodable, Zeroable}, UInt160}; @@ -9,8 +8,6 @@ use crate::keys::{IKey, KeyKind, dip14::{IChildKeyDerivation, SignKey}}; use crate::keys::crypto_data::{CryptoData, DHKey}; use crate::models::OperatorPublicKey; use crate::util::{base58, data_ops::hex_with_data, sec_vec::SecVec}; -#[cfg(feature = "use_serde")] -use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[derive(Clone, Debug, Default)] pub struct BLSKey { diff --git a/dash-spv-masternode-processor/src/keys/key.rs b/dash-spv-masternode-processor/src/keys/key.rs index a8e100cf..a115f7ec 100644 --- a/dash-spv-masternode-processor/src/keys/key.rs +++ b/dash-spv-masternode-processor/src/keys/key.rs @@ -5,8 +5,6 @@ use crate::crypto::{UInt256, UInt384, UInt768}; use crate::keys::{BLSKey, ECDSAKey, ED25519Key, IKey}; use crate::types::opaque_key::{AsOpaqueKey, OpaqueKey}; use crate::util::sec_vec::SecVec; -#[cfg(feature = "use_serde")] -use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] diff --git a/dash-spv-masternode-processor/src/tests/bindings/keys.rs b/dash-spv-masternode-processor/src/tests/bindings/keys.rs index 7c0fb1da..2710eeb6 100644 --- a/dash-spv-masternode-processor/src/tests/bindings/keys.rs +++ b/dash-spv-masternode-processor/src/tests/bindings/keys.rs @@ -8,8 +8,6 @@ use crate::crypto::{UInt256, UInt384}; use crate::ffi::IndexPathData; use crate::keys::KeyKind; use crate::types::opaque_key::OpaqueKey; -#[cfg(feature = "use_serde")] -use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[test] fn test_keys() {