Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
girazoki committed Nov 18, 2024
1 parent 673aeae commit 0de39fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion solo-chains/node/tanssi-relay-service/src/dev_rpcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Development Polkadot service. Adapted from `polkadot_service` crate
//! and removed un-necessary components which are not required in dev node.

use codec::{Decode, Encode};
use codec::Encode;
use jsonrpsee::{
core::RpcResult,
proc_macros::rpc,
Expand Down
15 changes: 4 additions & 11 deletions solo-chains/node/tanssi-relay-service/src/dev_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ use {
run_manual_seal, EngineCommand, ManualSealParams,
},
sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY},
sc_keystore::{Keystore, LocalKeystore},
sc_keystore::Keystore,
sc_transaction_pool_api::{OffchainTransactionPoolFactory, TransactionPool},
service::{Configuration, KeystoreContainer, RpcHandlers, TaskManager},
sp_api::ProvideRuntimeApi,
Expand Down Expand Up @@ -171,10 +171,7 @@ where

/// We use EmptyParachainsInherentDataProvider to insert an empty parachain inherent in the block
/// to satisfy runtime
struct EmptyParachainsInherentDataProvider<C: HeaderBackend<Block>> {
pub client: Arc<C>,
pub parent: Hash,
}
struct EmptyParachainsInherentDataProvider;

use polkadot_primitives::BackedCandidate;
use polkadot_primitives::CollatorPair;
Expand All @@ -197,12 +194,8 @@ struct Basics {
telemetry: Option<Telemetry>,
}

impl<C: HeaderBackend<Block>> EmptyParachainsInherentDataProvider<C> {
pub fn new(client: Arc<C>, parent: Hash) -> Self {
EmptyParachainsInherentDataProvider { client, parent }
}

pub async fn create(
impl EmptyParachainsInherentDataProvider {
pub async fn create<C: HeaderBackend<Block>>(
client: Arc<C>,
parent: Hash,
) -> Result<ParachainsInherentData, InherentError> {
Expand Down

0 comments on commit 0de39fc

Please sign in to comment.