refactor(parser): Move AnyValue definition closer to use

This commit is contained in:
Ed Page 2022-05-13 16:09:27 -05:00
parent bdf9d841ef
commit f16a6fb5a6
3 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,2 @@
pub(crate) type AnyValue = std::sync::Arc<dyn std::any::Any + Send + Sync + 'static>;

View file

@ -1,3 +1,4 @@
mod any_value;
mod arg_matches;
mod matched_arg;
mod value_source;
@ -5,5 +6,6 @@ mod value_source;
pub use arg_matches::{ArgMatches, Indices, OsValues, Values};
pub use value_source::ValueSource;
pub(crate) use any_value::AnyValue;
pub(crate) use arg_matches::SubCommand;
pub(crate) use matched_arg::MatchedArg;

View file

@ -9,10 +9,9 @@ mod validator;
pub(crate) mod features;
pub(crate) use self::arg_matcher::ArgMatcher;
pub(crate) use self::matches::AnyValue;
pub(crate) use self::matches::{MatchedArg, SubCommand};
pub(crate) use self::parser::{ParseState, Parser};
pub(crate) use self::validator::Validator;
pub use self::matches::{ArgMatches, Indices, OsValues, ValueSource, Values};
pub(crate) type AnyValue = std::sync::Arc<dyn std::any::Any + Send + Sync + 'static>;