Skip to content

Commit

Permalink
Merge pull request #3598 from dragonrider7225/bring-back-debug-impls
Browse files Browse the repository at this point in the history
fix: Bring forward Debug impls from v2
  • Loading branch information
epage authored Apr 1, 2022
2 parents c75d264 + 17fed36 commit 732830a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/parse/matches/arg_matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1214,8 +1214,7 @@ pub(crate) struct SubCommand {
/// assert_eq!(values.next(), None);
/// ```
/// [`ArgMatches::values_of`]: ArgMatches::values_of()
#[derive(Clone)]
#[allow(missing_debug_implementations)]
#[derive(Clone, Debug)]
pub struct Values<'a> {
#[allow(clippy::type_complexity)]
iter: Map<Flatten<Iter<'a, Vec<OsString>>>, for<'r> fn(&'r OsString) -> &'r str>,
Expand Down Expand Up @@ -1309,8 +1308,7 @@ impl<'a> Default for GroupedValues<'a> {
/// assert_eq!(&*m.value_of_os("arg").unwrap().as_bytes(), [b'H', b'i', b' ', 0xe9, b'!']);
/// ```
/// [`ArgMatches::values_of_os`]: ArgMatches::values_of_os()
#[derive(Clone)]
#[allow(missing_debug_implementations)]
#[derive(Clone, Debug)]
pub struct OsValues<'a> {
#[allow(clippy::type_complexity)]
iter: Map<Flatten<Iter<'a, Vec<OsString>>>, fn(&OsString) -> &OsStr>,
Expand Down Expand Up @@ -1367,8 +1365,7 @@ impl Default for OsValues<'_> {
/// assert_eq!(indices.next(), None);
/// ```
/// [`ArgMatches::indices_of`]: ArgMatches::indices_of()
#[derive(Clone)]
#[allow(missing_debug_implementations)]
#[derive(Clone, Debug)]
pub struct Indices<'a> {
iter: Cloned<Iter<'a, usize>>,
len: usize,
Expand Down

0 comments on commit 732830a

Please sign in to comment.