Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cli/src/lib.rs: Fix warnings
  • Loading branch information
mxinden committed Nov 28, 2019
commit 1ca72d9e12013b6b1a3c12ea0202efa04cf7c65a
4 changes: 2 additions & 2 deletions cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct ValidationWorkerCommand {
}

#[derive(Debug, StructOpt, Clone)]
pub struct PolkadotSubParams {
struct PolkadotSubParams {
#[structopt(long = "enable-authority-discovery")]
pub authority_discovery_enabled: bool,
}
Expand All @@ -101,7 +101,7 @@ pub fn run<W>(worker: W, version: cli::VersionInfo) -> error::Result<()> where
{
match cli::parse_and_prepare::<PolkadotSubCommands, PolkadotSubParams, _>(&version, "parity-polkadot", std::env::args()) {
cli::ParseAndPrepare::Run(cmd) => cmd.run(load_spec, worker,
|worker, cli_args, custom_args, mut config| {
|worker, _cli_args, custom_args, mut config| {
info!("{}", version.name);
info!(" version {}", config.full_version());
info!(" by {}, 2017-2019", version.author);
Expand Down