diff --git a/Cargo.lock b/Cargo.lock index 38e1f8d1f..6a4bbe1e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8404,7 +8404,6 @@ dependencies = [ "serai-message-queue-tests", "serai-processor", "serai-processor-messages", - "serde", "serde_json", "tokio", "zeroize", diff --git a/networks/monero/rpc/src/lib.rs b/networks/monero/rpc/src/lib.rs index 3bfc76b53..a490c4f3e 100644 --- a/networks/monero/rpc/src/lib.rs +++ b/networks/monero/rpc/src/lib.rs @@ -174,8 +174,6 @@ impl FeePriority { } } -#[derive(Debug, Deserialize)] -struct EmptyResponse {} #[derive(Debug, Deserialize)] struct JsonRpcResponse { result: T, diff --git a/substrate/abi/src/tx.rs b/substrate/abi/src/tx.rs index 6c61535b8..b1fccf099 100644 --- a/substrate/abi/src/tx.rs +++ b/substrate/abi/src/tx.rs @@ -83,7 +83,7 @@ impl, Extra: 'static + Tra #[cfg(feature = "serde")] mod _serde { use scale::Encode; - use serde::{ser::*, de::*}; + use serde::ser::*; use super::*; impl, Extra: 'static + TransactionMember> Serialize for Transaction @@ -93,6 +93,9 @@ mod _serde { serializer.serialize_bytes(&encoded) } } + + #[cfg(feature = "std")] + use serde::de::*; #[cfg(feature = "std")] impl< 'a, diff --git a/substrate/signals/pallet/src/lib.rs b/substrate/signals/pallet/src/lib.rs index 54d6086ac..a869e7d4e 100644 --- a/substrate/signals/pallet/src/lib.rs +++ b/substrate/signals/pallet/src/lib.rs @@ -14,6 +14,8 @@ pub mod pallet { use sp_io::hashing::blake2_256; use frame_system::pallet_prelude::*; + // False positive + #[allow(unused)] use frame_support::{pallet_prelude::*, sp_runtime}; use serai_primitives::*; diff --git a/tests/processor/Cargo.toml b/tests/processor/Cargo.toml index ecf97fc16..2eba0940a 100644 --- a/tests/processor/Cargo.toml +++ b/tests/processor/Cargo.toml @@ -42,7 +42,6 @@ serai-db = { path = "../../common/db", default-features = false } serai-message-queue = { path = "../../message-queue" } borsh = { version = "1", features = ["de_strict_order"] } -serde = { version = "1", default-features = false } serde_json = { version = "1", default-features = false } tokio = { version = "1", features = ["time"] } diff --git a/tests/processor/src/lib.rs b/tests/processor/src/lib.rs index 789d86797..c5dc678a0 100644 --- a/tests/processor/src/lib.rs +++ b/tests/processor/src/lib.rs @@ -160,9 +160,6 @@ pub fn processor_stack( ) } -#[derive(serde::Deserialize, Debug)] -struct EmptyResponse {} - pub struct Coordinator { network: NetworkId,