difftreelog
style fix clippy warnings
in: master
7 files changed
crates/evm-coder-macros/src/lib.rsdiffbeforeafterboth7use sha3::{Digest, Keccak256};7use sha3::{Digest, Keccak256};8use syn::{AttributeArgs, DeriveInput, GenericArgument, Ident, ItemImpl, Pat, Path, PathArguments, PathSegment, Type, parse_macro_input, spanned::Spanned};8use syn::{9 AttributeArgs, DeriveInput, GenericArgument, Ident, ItemImpl, Pat, Path, PathArguments,10 PathSegment, Type, parse_macro_input, spanned::Spanned,11};91210mod solidity_interface;13mod solidity_interface;crates/evm-coder/src/lib.rsdiffbeforeafterbothno syntactic changes
crates/evm-coder/src/solidity.rsdiffbeforeafterbothno syntactic changes
crates/evm-coder/tests/a.rsdiffbeforeafterbothno syntactic changes
node/cli/src/service.rsdiffbeforeafterbothno syntactic changes
pallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth136 let limit = <SponsoringRateLimit<T>>::get(&call.0);136 let limit = <SponsoringRateLimit<T>>::get(&call.0);137 if let Some(last_tx_block) = <SponsorBasket<T>>::get(&call.0, who) {137 if let Some(last_tx_block) = <SponsorBasket<T>>::get(&call.0, who) {138 <SponsorBasket<T>>::insert(&call.0, who, block_number);138 <SponsorBasket<T>>::insert(&call.0, who, block_number);139 let limit_time = last_tx_block + limit.into();139 let limit_time = last_tx_block + limit;140 if block_number > limit_time {140 if block_number > limit_time {141 return Some(call.0);141 return Some(call.0);142 }142 }runtime/src/lib.rsdiffbeforeafterboth281impl pallet_ethereum::Config for Runtime {281impl pallet_ethereum::Config for Runtime {282 type Event = Event;282 type Event = Event;283 type StateRoot = pallet_ethereum::IntermediateStateRoot;283 type StateRoot = pallet_ethereum::IntermediateStateRoot;284 type EvmSubmitLog = pallet_evm::Pallet<Runtime>;284 type EvmSubmitLog = pallet_evm::Pallet<Self>;285}285}286286287impl pallet_randomness_collective_flip::Config for Runtime {}287impl pallet_randomness_collective_flip::Config for Runtime {}329 /// This is used as an identifier of the chain. 42 is the generic substrate prefix.329 /// This is used as an identifier of the chain. 42 is the generic substrate prefix.330 type SS58Prefix = SS58Prefix;330 type SS58Prefix = SS58Prefix;331 /// Weight information for the extrinsics of this pallet.331 /// Weight information for the extrinsics of this pallet.332 type SystemWeightInfo = system::weights::SubstrateWeight<Runtime>;332 type SystemWeightInfo = system::weights::SubstrateWeight<Self>;333 /// Version of the runtime.333 /// Version of the runtime.334 type Version = Version;334 type Version = Version;335}335}363 type DustRemoval = Treasury;363 type DustRemoval = Treasury;364 type ExistentialDeposit = ExistentialDeposit;364 type ExistentialDeposit = ExistentialDeposit;365 type AccountStore = System;365 type AccountStore = System;366 type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;366 type WeightInfo = pallet_balances::weights::SubstrateWeight<Self>;367}367}368368369pub const MICROUNIQUE: Balance = 1_000_000_000;369pub const MICROUNIQUE: Balance = 1_000_000_000;487 type Burn = Burn;487 type Burn = Burn;488 type BurnDestination = ();488 type BurnDestination = ();489 type SpendFunds = ();489 type SpendFunds = ();490 type WeightInfo = pallet_treasury::weights::SubstrateWeight<Runtime>;490 type WeightInfo = pallet_treasury::weights::SubstrateWeight<Self>;491 type MaxApprovals = MaxApprovals;491 type MaxApprovals = MaxApprovals;492}492}493493516impl cumulus_pallet_parachain_system::Config for Runtime {516impl cumulus_pallet_parachain_system::Config for Runtime {517 type Event = Event;517 type Event = Event;518 type OnValidationData = ();518 type OnValidationData = ();519 type SelfParaId = parachain_info::Pallet<Runtime>;519 type SelfParaId = parachain_info::Pallet<Self>;520 // type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent<520 // type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent<521 // MaxDownwardMessageWeight,521 // MaxDownwardMessageWeight,522 // XcmExecutor<XcmConfig>,522 // XcmExecutor<XcmConfig>,