mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
refactor(parser): Move AnyValue definition closer to use
This commit is contained in:
parent
bdf9d841ef
commit
f16a6fb5a6
3 changed files with 5 additions and 2 deletions
2
src/parser/matches/any_value.rs
Normal file
2
src/parser/matches/any_value.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
pub(crate) type AnyValue = std::sync::Arc<dyn std::any::Any + Send + Sync + 'static>;
|
||||
|
|
@ -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;
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Add table
Reference in a new issue