cargo fmt with stable defaults (#876)

This commit is contained in:
James Wilson
2023-03-21 16:53:47 +00:00
committed by GitHub
parent c63ff6ec6d
commit 7c252fccf7
110 changed files with 663 additions and 1949 deletions
+5 -16
View File
@@ -6,32 +6,21 @@ use crate::{
node_runtime::{
self,
runtime_types::{
pallet_staking::{
RewardDestination,
ValidatorPrefs,
},
pallet_staking::{RewardDestination, ValidatorPrefs},
sp_arithmetic::per_things::Perbill,
},
staking,
},
pair_signer,
test_context,
pair_signer, test_context,
};
use assert_matches::assert_matches;
use sp_core::{
sr25519,
Pair,
};
use sp_core::{sr25519, Pair};
use sp_keyring::AccountKeyring;
use subxt::error::{
DispatchError,
Error,
};
use subxt::error::{DispatchError, Error};
/// Helper function to generate a crypto pair from seed
fn get_from_seed(seed: &str) -> sr25519::Pair {
sr25519::Pair::from_string(&format!("//{seed}"), None)
.expect("static values are valid; qed")
sr25519::Pair::from_string(&format!("//{seed}"), None).expect("static values are valid; qed")
}
fn default_validator_prefs() -> ValidatorPrefs {