Typo + some clippy stuff (unnecessary clone/to_string/refs) + fmt (#1437)

This commit is contained in:
Branislav Kontur
2022-07-11 13:05:40 +02:00
committed by GitHub
parent e46b59430a
commit 3bb82e5126
19 changed files with 46 additions and 56 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ pub struct ExportGenesisWasmCommand {
}
impl ExportGenesisWasmCommand {
/// Run the export-genesis-state command
/// Run the export-genesis-wasm command
pub fn run(&self, chain_spec: &dyn ChainSpec) -> sc_cli::Result<()> {
let raw_wasm_blob = extract_genesis_wasm(chain_spec)?;
let output_buf = if self.raw {
+1 -1
View File
@@ -218,7 +218,7 @@ where
/// Handle an imported block.
fn handle_block_imported(&mut self, hash: &Block::Hash) {
self.pending_candidates.remove(&hash);
self.pending_candidates.remove(hash);
}
/// Handle a finalized block with the given `block_number`.
+2 -2
View File
@@ -218,9 +218,9 @@ where
min: relay_chain_slot_duration * 25,
max: relay_chain_slot_duration * 50,
},
client.clone(),
client,
import_queue,
relay_chain_interface.clone(),
relay_chain_interface,
para_id,
);