mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Fixed clippy warnings (#537)
* fixed clippy warnings * Revert "Actually use pinned nightly version when building runtimes (#465)" This reverts commit dedddb6b0f22260e00053c28873a0cb1fbea22e2. * Revert "Pin Rust Nightly Version (#420)" This reverts commit 8902ac2030cf7ef48ec512463424f134a3b38804. * fix after revert * another fix after revert * more clippy fixes
This commit is contained in:
committed by
Bastian Köcher
parent
4f661d2fe0
commit
c20b4c868f
@@ -65,8 +65,8 @@ pub fn get_authority_keys_from_seed(s: &str) -> (AccountId, AuraId, GrandpaId) {
|
||||
|
||||
impl Alternative {
|
||||
/// Get an actual chain config from one of the alternatives.
|
||||
pub(crate) fn load(self) -> Result<ChainSpec, String> {
|
||||
Ok(match self {
|
||||
pub(crate) fn load(self) -> ChainSpec {
|
||||
match self {
|
||||
Alternative::Development => ChainSpec::from_genesis(
|
||||
"Development",
|
||||
"dev",
|
||||
@@ -131,7 +131,7 @@ impl Alternative {
|
||||
None,
|
||||
None,
|
||||
),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,8 +156,8 @@ fn testnet_genesis(
|
||||
pallet_aura: Some(AuraConfig {
|
||||
authorities: Vec::new(),
|
||||
}),
|
||||
pallet_bridge_eth_poa_Instance1: load_rialto_poa_bridge_config(),
|
||||
pallet_bridge_eth_poa_Instance2: load_kovan_bridge_config(),
|
||||
pallet_bridge_eth_poa_Instance1: Some(load_rialto_poa_bridge_config()),
|
||||
pallet_bridge_eth_poa_Instance2: Some(load_kovan_bridge_config()),
|
||||
pallet_grandpa: Some(GrandpaConfig {
|
||||
authorities: Vec::new(),
|
||||
}),
|
||||
@@ -176,18 +176,18 @@ fn testnet_genesis(
|
||||
}
|
||||
}
|
||||
|
||||
fn load_rialto_poa_bridge_config() -> Option<BridgeRialtoPoAConfig> {
|
||||
Some(BridgeRialtoPoAConfig {
|
||||
fn load_rialto_poa_bridge_config() -> BridgeRialtoPoAConfig {
|
||||
BridgeRialtoPoAConfig {
|
||||
initial_header: rialto_runtime::rialto_poa::genesis_header(),
|
||||
initial_difficulty: 0.into(),
|
||||
initial_validators: rialto_runtime::rialto_poa::genesis_validators(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
fn load_kovan_bridge_config() -> Option<BridgeKovanConfig> {
|
||||
Some(BridgeKovanConfig {
|
||||
fn load_kovan_bridge_config() -> BridgeKovanConfig {
|
||||
BridgeKovanConfig {
|
||||
initial_header: rialto_runtime::kovan::genesis_header(),
|
||||
initial_difficulty: 0.into(),
|
||||
initial_validators: rialto_runtime::kovan::genesis_validators(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ impl SubstrateCli for Cli {
|
||||
"local" => crate::chain_spec::Alternative::LocalTestnet,
|
||||
_ => return Err(format!("Unsupported chain specification: {}", id)),
|
||||
}
|
||||
.load()?,
|
||||
.load(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user