mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
Merge pull request #3598 from dragonrider7225/bring-back-debug-impls
fix: Bring forward Debug impls from v2
This commit is contained in:
commit
732830a98c
1 changed files with 3 additions and 6 deletions
|
@ -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>,
|
||||
|
@ -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>,
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue