From 7661f1f50d4f7e706b10717076ff83f7e9f4c110 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 30 Oct 2021 11:46:39 -0500 Subject: [PATCH] refactor: Remove unused variable --- src/build/arg/mod.rs | 3 --- src/build/usage_parser.rs | 1 - 2 files changed, 4 deletions(-) diff --git a/src/build/arg/mod.rs b/src/build/arg/mod.rs index c57b675d..b99433cc 100644 --- a/src/build/arg/mod.rs +++ b/src/build/arg/mod.rs @@ -102,7 +102,6 @@ pub struct Arg<'help> { pub(crate) aliases: Vec<(&'help str, bool)>, // (name, visible) pub(crate) short_aliases: Vec<(char, bool)>, // (name, visible) pub(crate) disp_ord: usize, - pub(crate) unified_ord: usize, pub(crate) possible_vals: Vec>, pub(crate) val_names: Vec<&'help str>, pub(crate) num_vals: Option, @@ -340,7 +339,6 @@ impl<'help> Arg<'help> { id: Id::from(&*name), name, disp_ord: 999, - unified_ord: 999, ..Default::default() } } @@ -5204,7 +5202,6 @@ impl<'help> fmt::Debug for Arg<'help> { .field("aliases", &self.aliases) .field("short_aliases", &self.short_aliases) .field("disp_ord", &self.disp_ord) - .field("unified_ord", &self.unified_ord) .field("possible_vals", &self.possible_vals) .field("val_names", &self.val_names) .field("num_vals", &self.num_vals) diff --git a/src/build/usage_parser.rs b/src/build/usage_parser.rs index 3383ae37..7f56d813 100644 --- a/src/build/usage_parser.rs +++ b/src/build/usage_parser.rs @@ -46,7 +46,6 @@ impl<'help> UsageParser<'help> { debug!("UsageParser::parse"); let mut arg = Arg { disp_ord: 999, - unified_ord: 999, ..Default::default() }; loop {