Skip to content

Commit

Permalink
refactor(builder): Rename AppTag to AppExt
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 2, 2024
1 parent f89afeb commit e9ce1be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions clap_builder/src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4909,19 +4909,19 @@ impl fmt::Display for Command {
}

#[allow(dead_code)] // atm dependent on features enabled
pub(crate) trait AppTag: crate::builder::ext::Extension {}
pub(crate) trait AppExt: crate::builder::ext::Extension {}

#[allow(dead_code)] // atm dependent on features enabled
#[derive(Default, Copy, Clone, Debug)]
struct TermWidth(usize);

impl AppTag for TermWidth {}
impl AppExt for TermWidth {}

#[allow(dead_code)] // atm dependent on features enabled
#[derive(Default, Copy, Clone, Debug)]
struct MaxTermWidth(usize);

impl AppTag for MaxTermWidth {}
impl AppExt for MaxTermWidth {}

fn two_elements_of<I, T>(mut iter: I) -> Option<(T, T)>
where
Expand Down
2 changes: 1 addition & 1 deletion clap_builder/src/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ pub use value_parser::_AnonymousValueParser;
pub(crate) use self::str::Inner as StrInner;
pub(crate) use action::CountType;
pub(crate) use arg_settings::{ArgFlags, ArgSettings};
pub(crate) use command::AppTag;
pub(crate) use command::AppExt;
2 changes: 1 addition & 1 deletion clap_builder/src/builder/styling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Styles {
}
}

impl super::AppTag for Styles {}
impl super::AppExt for Styles {}

impl Default for Styles {
fn default() -> Self {
Expand Down

0 comments on commit e9ce1be

Please sign in to comment.