diff --git a/src/build/app/mod.rs b/src/build/app/mod.rs index 7f2418f2ad2..d2f4d1b9e3a 100644 --- a/src/build/app/mod.rs +++ b/src/build/app/mod.rs @@ -60,7 +60,7 @@ use crate::{ /// // Your program logic starts here... /// ``` /// [`App::get_matches`]: ./struct.App.html#method.get_matches -#[derive(Default, Debug, Clone)] +#[derive(Default, Debug, Clone, PartialEq, Eq)] pub struct App<'help> { pub(crate) id: Id, pub(crate) name: String, diff --git a/src/build/app/settings.rs b/src/build/app/settings.rs index 492816a19c8..45dc922bce9 100644 --- a/src/build/app/settings.rs +++ b/src/build/app/settings.rs @@ -51,7 +51,7 @@ bitflags! { } } -#[derive(Debug, Copy, Clone, PartialEq)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub(crate) struct AppFlags(Flags); impl BitOr for AppFlags { diff --git a/src/build/arg_group.rs b/src/build/arg_group.rs index 193007b4066..8f58b61fed1 100644 --- a/src/build/arg_group.rs +++ b/src/build/arg_group.rs @@ -75,7 +75,7 @@ use yaml_rust::Yaml; /// [arguments]: ./struct.Arg.html /// [conflict]: ./struct.Arg.html#method.conflicts_with /// [requirement]: ./struct.Arg.html#method.requires -#[derive(Default, Debug)] +#[derive(Default, Debug, PartialEq, Eq)] pub struct ArgGroup<'help> { pub(crate) id: Id, pub(crate) name: &'help str, diff --git a/src/mkeymap.rs b/src/mkeymap.rs index 6fc2209eb87..a6ddc39ffb8 100644 --- a/src/mkeymap.rs +++ b/src/mkeymap.rs @@ -5,13 +5,13 @@ use std::{ ops::Index, }; -#[derive(PartialEq, Debug, Clone)] +#[derive(PartialEq, Eq, Debug, Clone)] pub(crate) struct Key { pub(crate) key: KeyType, pub(crate) index: usize, } -#[derive(Default, PartialEq, Debug, Clone)] +#[derive(Default, PartialEq, Eq, Debug, Clone)] pub(crate) struct MKeyMap<'help> { pub(crate) keys: Vec, pub(crate) args: Vec>, diff --git a/src/parse/matches/arg_matches.rs b/src/parse/matches/arg_matches.rs index cc1db379474..987e396d3f4 100644 --- a/src/parse/matches/arg_matches.rs +++ b/src/parse/matches/arg_matches.rs @@ -18,7 +18,7 @@ use crate::{ {Error, INVALID_UTF8}, }; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub(crate) struct SubCommand { pub(crate) id: Id, pub(crate) name: String, @@ -72,7 +72,7 @@ pub(crate) struct SubCommand { /// } /// ``` /// [`App::get_matches`]: ./struct.App.html#method.get_matches -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct ArgMatches { pub(crate) args: IndexMap, pub(crate) subcommand: Option>, diff --git a/src/parse/matches/matched_arg.rs b/src/parse/matches/matched_arg.rs index e9286bed475..25fcb990be7 100644 --- a/src/parse/matches/matched_arg.rs +++ b/src/parse/matches/matched_arg.rs @@ -9,7 +9,7 @@ pub(crate) enum ValueType { DefaultValue, } -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] pub(crate) struct MatchedArg { pub(crate) occurs: u64, pub(crate) ty: ValueType,