Remove a pair of unused structs/deps

Caught by the most recent nightly.
This commit is contained in:
Luke Parker 2024-08-01 00:40:43 -04:00
parent 880565cb81
commit 0f6878567f
No known key found for this signature in database
6 changed files with 6 additions and 8 deletions

1
Cargo.lock generated
View file

@ -8404,7 +8404,6 @@ dependencies = [
"serai-message-queue-tests",
"serai-processor",
"serai-processor-messages",
"serde",
"serde_json",
"tokio",
"zeroize",

View file

@ -174,8 +174,6 @@ impl FeePriority {
}
}
#[derive(Debug, Deserialize)]
struct EmptyResponse {}
#[derive(Debug, Deserialize)]
struct JsonRpcResponse<T> {
result: T,

View file

@ -83,7 +83,7 @@ impl<Call: 'static + TransactionMember + From<crate::Call>, Extra: 'static + Tra
#[cfg(feature = "serde")]
mod _serde {
use scale::Encode;
use serde::{ser::*, de::*};
use serde::ser::*;
use super::*;
impl<Call: 'static + TransactionMember + From<crate::Call>, Extra: 'static + TransactionMember>
Serialize for Transaction<Call, Extra>
@ -93,6 +93,9 @@ mod _serde {
serializer.serialize_bytes(&encoded)
}
}
#[cfg(feature = "std")]
use serde::de::*;
#[cfg(feature = "std")]
impl<
'a,

View file

@ -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::*;

View file

@ -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"] }

View file

@ -160,9 +160,6 @@ pub fn processor_stack(
)
}
#[derive(serde::Deserialize, Debug)]
struct EmptyResponse {}
pub struct Coordinator {
network: NetworkId,