diff --git a/src/tests.rs b/src/tests.rs index e83bf64..505f1b0 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -21,7 +21,7 @@ use frame_support::{assert_noop, assert_ok}; use mock::*; use parity_scale_codec::Encode; use sp_core::Pair; -use sp_runtime::{ModuleError, MultiSignature, DispatchError, traits::Dispatchable}; +use sp_runtime::{traits::Dispatchable, DispatchError, ModuleError, MultiSignature}; // Constant that reflects the desired vesting period for the tests // Most tests complete initialization passing initRelayBlock + VESTING as the endRelayBlock diff --git a/src/weights.rs b/src/weights.rs index 83e4bbe..d76e382 100644 --- a/src/weights.rs +++ b/src/weights.rs @@ -65,9 +65,7 @@ impl WeightInfo for SubstrateWeight { fn initialize_reward_vec(x: u32) -> Weight { Weight::from_all(143_109_000) // Standard Error: 21_000 - .saturating_add(Weight::from_all( - 72_298_000_u64.saturating_mul(x as u64), - )) + .saturating_add(Weight::from_all(72_298_000_u64.saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads(x as u64)) .saturating_add(T::DbWeight::get().writes(5)) @@ -96,9 +94,7 @@ impl WeightInfo for SubstrateWeight { fn change_association_with_relay_keys(x: u32) -> Weight { Weight::from_all(0) // Standard Error: 7_000 - .saturating_add(Weight::from_all( - 47_373_000_u64.saturating_mul(x as u64), - )) + .saturating_add(Weight::from_all(47_373_000_u64.saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -109,9 +105,7 @@ impl WeightInfo for () { fn initialize_reward_vec(x: u32) -> Weight { Weight::from_all(143_109_000) // Standard Error: 21_000 - .saturating_add(Weight::from_all( - 72_298_000_u64.saturating_mul(x as u64), - )) + .saturating_add(Weight::from_all(72_298_000_u64.saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().reads(8)) .saturating_add(RocksDbWeight::get().reads(x as u64)) .saturating_add(RocksDbWeight::get().writes(5)) @@ -140,9 +134,7 @@ impl WeightInfo for () { fn change_association_with_relay_keys(x: u32) -> Weight { Weight::from_all(0) // Standard Error: 7_000 - .saturating_add(Weight::from_all( - 47_373_000_u64.saturating_mul(x as u64), - )) + .saturating_add(Weight::from_all(47_373_000_u64.saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().reads(6)) .saturating_add(RocksDbWeight::get().writes(4)) }