aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/arg_util.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-07 15:29:44 +0000
committerDaniel Mueller <deso@posteo.net>2020-01-08 09:21:25 -0800
commit00c306b7e8e75da25b46df76191bfb9adcab5f50 (patch)
tree7b13015395818da3b0bfbd40d659131045971310 /nitrocli/src/arg_util.rs
parente517a2a28538b8e8ae010a5953b8dbef4dd64577 (diff)
downloadnitrocli-00c306b7e8e75da25b46df76191bfb9adcab5f50.tar.gz
nitrocli-00c306b7e8e75da25b46df76191bfb9adcab5f50.tar.bz2
Remove str argument from Command! macro
As we no longer have to implement the Display and AsRef traits for the enums generated with the Command! macro, we don’t have to set a string representation either. So we can drop this argument from the Command! macro.
Diffstat (limited to 'nitrocli/src/arg_util.rs')
-rw-r--r--nitrocli/src/arg_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nitrocli/src/arg_util.rs b/nitrocli/src/arg_util.rs
index 53f2c75..15ab730 100644
--- a/nitrocli/src/arg_util.rs
+++ b/nitrocli/src/arg_util.rs
@@ -25,7 +25,7 @@ macro_rules! count {
}
macro_rules! Command {
- ( $name:ident, [ $( $var:ident($inner:ident) => ($str:expr, $exec:expr), ) *] ) => {
+ ( $name:ident, [ $( $var:ident($inner:ident) => $exec:expr, ) *] ) => {
#[derive(Debug, PartialEq, structopt::StructOpt)]
pub enum $name {
$(