mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
Removed a few warnings (#4786)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
use sc_cli::{SharedParams, ImportParams, RunCmd};
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Clone, Debug, StructOpt)]
|
||||
#[structopt(settings = &[
|
||||
structopt::clap::AppSettings::GlobalVersion,
|
||||
@@ -24,14 +25,18 @@ use structopt::StructOpt;
|
||||
structopt::clap::AppSettings::SubcommandsNegateReqs,
|
||||
])]
|
||||
pub struct Cli {
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(subcommand)]
|
||||
pub subcommand: Option<Subcommand>,
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(flatten)]
|
||||
pub run: RunCmd,
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Clone, Debug, StructOpt)]
|
||||
pub enum Subcommand {
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(flatten)]
|
||||
Base(sc_cli::Subcommand),
|
||||
/// The custom factory subcommmand for manufacturing transactions.
|
||||
|
||||
@@ -20,7 +20,7 @@ use node_transaction_factory::RuntimeAdapter;
|
||||
use crate::{Cli, service, ChainSpec, load_spec, Subcommand, factory_impl::FactoryState};
|
||||
|
||||
/// Parse command line arguments into service configuration.
|
||||
pub fn run<I, T>(args: I, version: sc_cli::VersionInfo) -> error::Result<()>
|
||||
pub fn run<I, T>(args: I, version: VersionInfo) -> error::Result<()>
|
||||
where
|
||||
I: Iterator<Item = T>,
|
||||
T: Into<std::ffi::OsString> + Clone,
|
||||
|
||||
Reference in New Issue
Block a user