From 00c306b7e8e75da25b46df76191bfb9adcab5f50 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 7 Jan 2020 15:29:44 +0000 Subject: Remove str argument from Command! macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- nitrocli/src/arg_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nitrocli/src/arg_util.rs') 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 { $( -- cgit v1.2.1