Let the clone wars begin! (#8731)

Sprinkle some `Clone` onto the cli commands.
This commit is contained in:
Bastian Köcher
2021-05-04 23:57:18 +02:00
committed by GitHub
parent 24eb647571
commit 37ea3958d9
21 changed files with 25 additions and 25 deletions
+4 -4
View File
@@ -75,7 +75,7 @@ impl GenericNumber {
}
/// Wrapper type that is either a `Hash` or the number of a `Block`.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct BlockNumberOrHash(String);
impl FromStr for BlockNumberOrHash {
@@ -119,7 +119,7 @@ impl BlockNumberOrHash {
/// Optional flag for specifying crypto algorithm
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct CryptoSchemeFlag {
/// cryptography scheme
#[structopt(
@@ -133,7 +133,7 @@ pub struct CryptoSchemeFlag {
}
/// Optional flag for specifying output type
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct OutputTypeFlag {
/// output format
#[structopt(
@@ -147,7 +147,7 @@ pub struct OutputTypeFlag {
}
/// Optional flag for specifying network scheme
#[derive(Debug, StructOpt)]
#[derive(Debug, StructOpt, Clone)]
pub struct NetworkSchemeFlag {
/// network address format
#[structopt(