aboutsummaryrefslogtreecommitdiff
path: root/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-07 15:29:44 +0000
commitdbbc88e568f2fd99a01d9e3fae32b7c4e5980b19 (patch)
tree7aa618da5faecc38630f1890d74ad4d7e827c0fc /src/arg_util.rs
parent8e29cb575f4534c4c723699164db7315a970f1ec (diff)
downloadnitrocli-dbbc88e568f2fd99a01d9e3fae32b7c4e5980b19.tar.gz
nitrocli-dbbc88e568f2fd99a01d9e3fae32b7c4e5980b19.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 'src/arg_util.rs')
-rw-r--r--src/arg_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arg_util.rs b/src/arg_util.rs
index 52d1020..2f04ccd 100644
--- a/src/arg_util.rs
+++ b/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 {
$(