diff --git a/parachain-node/src/rpc.rs b/parachain-node/src/rpc.rs index 234e5fa49..62c932dfb 100644 --- a/parachain-node/src/rpc.rs +++ b/parachain-node/src/rpc.rs @@ -9,7 +9,7 @@ use std::sync::Arc; use jsonrpsee::RpcModule; use parachain_template_runtime::opaque::Block; -pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor}; +pub use sc_rpc::DenyUnsafe; use sc_transaction_pool_api::TransactionPool; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder; diff --git a/tuxedo-core/src/inherents.rs b/tuxedo-core/src/inherents.rs index 69f4b90ee..fb246154b 100644 --- a/tuxedo-core/src/inherents.rs +++ b/tuxedo-core/src/inherents.rs @@ -170,7 +170,7 @@ impl, T: TuxedoInherent + 'static> In panic!("Authoring a leaf inherent constraint checker, but multiple previous inherents were supplied.") } - let previous_inherent = previous_inherents.get(0).cloned(); + let previous_inherent = previous_inherents.first().cloned(); vec![>::create_inherent( authoring_inherent_data, @@ -199,7 +199,10 @@ impl, T: TuxedoInherent + 'static> In .expect("Should be able to put an error."); return; } - let inherent = inherents.get(0).expect("Previous inherent exists.").clone(); + let inherent = inherents + .first() + .expect("Previous inherent exists.") + .clone(); >::check_inherent(importing_inherent_data, inherent, results) }