aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/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
commitc0d8583e0aba69b0628eb9c036f50a86f33d381f (patch)
tree1545921d1a4a0461203656cf949b7ec27ca5a7d5 /nitrocli/src/arg_util.rs
parent6c31f18cf40c7662b34ee89b3e6ddf516730611e (diff)
downloadnitrocli-c0d8583e0aba69b0628eb9c036f50a86f33d381f.tar.gz
nitrocli-c0d8583e0aba69b0628eb9c036f50a86f33d381f.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 'nitrocli/src/arg_util.rs')
-rw-r--r--nitrocli/src/arg_util.rs2
1 files changed, 1 insertions, 1 deletions
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))?,