From 29077fbca88cddf9f6cf4857623c1a50e756c306 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Wed, 8 Jan 2020 09:59:04 -0800 Subject: Do not declare internally used types as pub With the recent patch set moving us to using structopt over argparse we introduced all new structs and enums representing subcommands and the like as public. That is unnecessary, as they are not accessed from the outside. This change adjusts the visibility accordingly. --- src/arg_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arg_util.rs') diff --git a/src/arg_util.rs b/src/arg_util.rs index c72d89b..930e470 100644 --- a/src/arg_util.rs +++ b/src/arg_util.rs @@ -35,7 +35,7 @@ macro_rules! tr { macro_rules! Command { ( $name:ident, [ $( $(#[$doc:meta])* $var:ident$(($inner:ty))? => $exec:expr, ) *] ) => { #[derive(Debug, PartialEq, structopt::StructOpt)] - pub enum $name { + enum $name { $( $(#[$doc])* $var$(($inner))?, -- cgit v1.2.1