From c0d8583e0aba69b0628eb9c036f50a86f33d381f 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. --- 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 bc1c02c..eb356bf 100644 --- a/nitrocli/src/arg_util.rs +++ b/nitrocli/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