diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-07 15:29:44 +0000 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-01-07 15:29:44 +0000 |
commit | dbbc88e568f2fd99a01d9e3fae32b7c4e5980b19 (patch) | |
tree | 7aa618da5faecc38630f1890d74ad4d7e827c0fc /src/arg_util.rs | |
parent | 8e29cb575f4534c4c723699164db7315a970f1ec (diff) | |
download | nitrocli-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.rs | 2 |
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 { $( |