Removed a few warnings (#4786)

This commit is contained in:
Cecile Tonglet
2020-01-31 12:32:12 +01:00
committed by GitHub
parent 4de44129cf
commit ce47bfa2ba
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -17,6 +17,7 @@
use sc_cli::{SharedParams, ImportParams, RunCmd}; use sc_cli::{SharedParams, ImportParams, RunCmd};
use structopt::StructOpt; use structopt::StructOpt;
#[allow(missing_docs)]
#[derive(Clone, Debug, StructOpt)] #[derive(Clone, Debug, StructOpt)]
#[structopt(settings = &[ #[structopt(settings = &[
structopt::clap::AppSettings::GlobalVersion, structopt::clap::AppSettings::GlobalVersion,
@@ -24,14 +25,18 @@ use structopt::StructOpt;
structopt::clap::AppSettings::SubcommandsNegateReqs, structopt::clap::AppSettings::SubcommandsNegateReqs,
])] ])]
pub struct Cli { pub struct Cli {
#[allow(missing_docs)]
#[structopt(subcommand)] #[structopt(subcommand)]
pub subcommand: Option<Subcommand>, pub subcommand: Option<Subcommand>,
#[allow(missing_docs)]
#[structopt(flatten)] #[structopt(flatten)]
pub run: RunCmd, pub run: RunCmd,
} }
#[allow(missing_docs)]
#[derive(Clone, Debug, StructOpt)] #[derive(Clone, Debug, StructOpt)]
pub enum Subcommand { pub enum Subcommand {
#[allow(missing_docs)]
#[structopt(flatten)] #[structopt(flatten)]
Base(sc_cli::Subcommand), Base(sc_cli::Subcommand),
/// The custom factory subcommmand for manufacturing transactions. /// The custom factory subcommmand for manufacturing transactions.
+1 -1
View File
@@ -20,7 +20,7 @@ use node_transaction_factory::RuntimeAdapter;
use crate::{Cli, service, ChainSpec, load_spec, Subcommand, factory_impl::FactoryState}; use crate::{Cli, service, ChainSpec, load_spec, Subcommand, factory_impl::FactoryState};
/// Parse command line arguments into service configuration. /// 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 where
I: Iterator<Item = T>, I: Iterator<Item = T>,
T: Into<std::ffi::OsString> + Clone, T: Into<std::ffi::OsString> + Clone,