Skip to content

Commit

Permalink
use clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Ferrell <[email protected]>
  • Loading branch information
ferrell-code committed Apr 9, 2024
1 parent 0a73df3 commit ee01e3e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion node/src/chain_specs/calamari.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn calamari_development_config() -> CalamariChainSpec {
relay_chain: KUSAMA_RELAYCHAIN_DEV_NET.into(),
para_id: CALAMARI_PARACHAIN_ID,
},
&WASM_BINARY.expect("WASM binary was not build, please build it!"),
WASM_BINARY.expect("WASM binary was not build, please build it!"),
)
}

Expand Down
2 changes: 2 additions & 0 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ where
///
/// This is the actual implementation that is abstract over the executor and the runtime api.
#[sc_tracing::logging::prefix_logs_with("Parachain")]
#[allow(clippy::too_many_arguments)]
pub async fn start_parachain_node<RuntimeApi, RB>(
parachain_config: Configuration,
polkadot_config: Configuration,
Expand Down Expand Up @@ -374,6 +375,7 @@ where
Ok((task_manager, client))
}

#[allow(clippy::too_many_arguments)]
fn start_consensus<RuntimeApi, SO>(
async_backing: bool,
backend: Arc<FullBackend>,
Expand Down
3 changes: 2 additions & 1 deletion runtime/calamari/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ impl pallet_name_service::Config for Runtime {
}

struct CheckInherents;
#[allow(deprecated)]
impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherents {
fn check_inherents(
block: &Block,
Expand Down Expand Up @@ -1663,5 +1664,5 @@ impl_runtime_apis! {
cumulus_pallet_parachain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = pallet_author_inherent::BlockExecutor::<Runtime, Executive>,
CheckInherents = CheckInherentsStruct
CheckInherents = CheckInherents
}
6 changes: 3 additions & 3 deletions runtime/manta/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ use sp_version::NativeVersion;
use sp_version::RuntimeVersion;

use cumulus_pallet_parachain_system::{
register_validate_block, CheckInherents, ParachainSetCode, RelayChainStateProof,
RelaychainDataProvider,
register_validate_block, ParachainSetCode, RelayChainStateProof, RelaychainDataProvider,
};
use frame_support::{
construct_runtime,
Expand Down Expand Up @@ -925,7 +924,8 @@ impl pallet_name_service::Config for Runtime {
impl parachain_info::Config for Runtime {}

struct CheckInherentsStruct;
impl CheckInherents<Block> for CheckInherentsStruct {
#[allow(deprecated)]
impl cumulus_pallet_parachain_system::CheckInherents<Block> for CheckInherentsStruct {
fn check_inherents(
block: &Block,
relay_state_proof: &RelayChainStateProof,
Expand Down

0 comments on commit ee01e3e

Please sign in to comment.