summaryrefslogtreecommitdiff
path: root/src/arg_util.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-01-08 09:59:04 -0800
committerDaniel Mueller <deso@posteo.net>2020-01-08 09:59:04 -0800
commit29077fbca88cddf9f6cf4857623c1a50e756c306 (patch)
tree05c17188a21fa0efba9add7f51a21b06d3a4e4c5 /src/arg_util.rs
parent6be66131cb6f76c1d8120847bb462c4abd5d5077 (diff)
downloadnitrocli-29077fbca88cddf9f6cf4857623c1a50e756c306.tar.gz
nitrocli-29077fbca88cddf9f6cf4857623c1a50e756c306.tar.bz2
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.
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 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))?,