From 75f5a0ed073b6ce1f9596e40fdb3585d44051549 Mon Sep 17 00:00:00 2001 From: Ada <> Date: Wed, 22 Feb 2023 16:22:55 -0500 Subject: [PATCH] Cargo fmt --- node/src/benchmarking.rs | 2 +- pallets/creditcoin/src/lib.rs | 2 +- pallets/difficulty/src/lib.rs | 2 +- pallets/staking/src/lib.rs | 7 +++++-- runtime/src/lib.rs | 4 +++- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index 2f2e5fad13..fc3c30d152 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -178,7 +178,7 @@ pub fn inherent_benchmark_data() -> Result { executor::block_on( timestamp .provide_inherent_data(&mut inherent_data) - .map_err(|e| format!("creating inherent data: {e:?}")) + .map_err(|e| format!("creating inherent data: {e:?}")), )?; Ok(inherent_data) diff --git a/pallets/creditcoin/src/lib.rs b/pallets/creditcoin/src/lib.rs index cae673d43d..4205641fa6 100644 --- a/pallets/creditcoin/src/lib.rs +++ b/pallets/creditcoin/src/lib.rs @@ -1442,4 +1442,4 @@ pub mod pallet { Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::No }) } } -} \ No newline at end of file +} diff --git a/pallets/difficulty/src/lib.rs b/pallets/difficulty/src/lib.rs index 5773c09260..62d11dca36 100644 --- a/pallets/difficulty/src/lib.rs +++ b/pallets/difficulty/src/lib.rs @@ -231,4 +231,4 @@ impl OnTimestampSet for Pallet { CurrentDifficulty::::put(next_difficulty); PreviousDifficultiesAndTimestamps::::put(previous); } -} \ No newline at end of file +} diff --git a/pallets/staking/src/lib.rs b/pallets/staking/src/lib.rs index 463fe410a1..9b3ed03913 100644 --- a/pallets/staking/src/lib.rs +++ b/pallets/staking/src/lib.rs @@ -1,6 +1,9 @@ #![cfg_attr(not(feature = "std"), no_std)] -use frame_election_provider_support::{BoundedSupportsOf, ElectionDataProvider, ElectionProvider, ElectionProviderBase, SortedListProvider}; +use frame_election_provider_support::{ + BoundedSupportsOf, ElectionDataProvider, ElectionProvider, ElectionProviderBase, + SortedListProvider, +}; use frame_support::{defensive, traits::Defensive, traits::DefensiveTruncateFrom, RuntimeDebug}; pub use pallet_staking_substrate as pallet; pub use pallet_staking_substrate::weights; @@ -256,7 +259,7 @@ where accounts .iter() .map(|acc| (acc.clone(), Default::default())) - .collect::>() + .collect::>(), ) }) } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 767a57617b..fdeb6f1aa0 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -32,7 +32,9 @@ pub use frame_support::{ construct_runtime, parameter_types, traits::{KeyOwnerProofSystem, Randomness, StorageInfo}, weights::{ - constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND}, + constants::{ + BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND, + }, IdentityFee, Weight, }, StorageValue,