Skip to content

Commit

Permalink
Remove a pair of unused structs/deps
Browse files Browse the repository at this point in the history
Caught by the most recent nightly.
  • Loading branch information
kayabaNerve committed Aug 1, 2024
1 parent 880565c commit 0f68785
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions networks/monero/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ impl FeePriority {
}
}

#[derive(Debug, Deserialize)]
struct EmptyResponse {}
#[derive(Debug, Deserialize)]
struct JsonRpcResponse<T> {
result: T,
Expand Down
5 changes: 4 additions & 1 deletion substrate/abi/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -93,6 +93,9 @@ mod _serde {
serializer.serialize_bytes(&encoded)
}
}

#[cfg(feature = "std")]
use serde::de::*;
#[cfg(feature = "std")]
impl<
'a,
Expand Down
2 changes: 2 additions & 0 deletions substrate/signals/pallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
1 change: 0 additions & 1 deletion tests/processor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
3 changes: 0 additions & 3 deletions tests/processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ pub fn processor_stack(
)
}

#[derive(serde::Deserialize, Debug)]
struct EmptyResponse {}

pub struct Coordinator {
network: NetworkId,

Expand Down

0 comments on commit 0f68785

Please sign in to comment.