diff options
Diffstat (limited to 'crates/core/app.rs')
-rw-r--r-- | crates/core/app.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/crates/core/app.rs b/crates/core/app.rs index 7031d804..f6af7993 100644 --- a/crates/core/app.rs +++ b/crates/core/app.rs @@ -297,14 +297,11 @@ impl RGArg { fn positional(name: &'static str, value_name: &'static str) -> RGArg { RGArg { claparg: Arg::with_name(name).value_name(value_name), - name: name, + name, doc_short: "", doc_long: "", hidden: false, - kind: RGArgKind::Positional { - value_name: value_name, - multiple: false, - }, + kind: RGArgKind::Positional { value_name, multiple: false }, } } @@ -319,7 +316,7 @@ impl RGArg { fn switch(long_name: &'static str) -> RGArg { let claparg = Arg::with_name(long_name).long(long_name); RGArg { - claparg: claparg, + claparg, name: long_name, doc_short: "", doc_long: "", @@ -349,7 +346,7 @@ impl RGArg { .takes_value(true) .number_of_values(1); RGArg { - claparg: claparg, + claparg, name: long_name, doc_short: "", doc_long: "", @@ -357,7 +354,7 @@ impl RGArg { kind: RGArgKind::Flag { long: long_name, short: None, - value_name: value_name, + value_name, multiple: false, possible_values: vec![], }, |