Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ada committed Feb 22, 2023
1 parent 7796fa6 commit 75f5a0e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion node/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub fn inherent_benchmark_data() -> Result<InherentData> {
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)
Expand Down
2 changes: 1 addition & 1 deletion pallets/creditcoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1442,4 +1442,4 @@ pub mod pallet {
Ok(PostDispatchInfo { actual_weight: None, pays_fee: Pays::No })
}
}
}
}
2 changes: 1 addition & 1 deletion pallets/difficulty/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ impl<T: Config> OnTimestampSet<T::Moment> for Pallet<T> {
CurrentDifficulty::<T>::put(next_difficulty);
PreviousDifficultiesAndTimestamps::<T>::put(previous);
}
}
}
7 changes: 5 additions & 2 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -256,7 +259,7 @@ where
accounts
.iter()
.map(|acc| (acc.clone(), Default::default()))
.collect::<Vec<_>>()
.collect::<Vec<_>>(),
)
})
}
Expand Down
4 changes: 3 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 75f5a0e

Please sign in to comment.