Skip to content

Commit

Permalink
refactor(help): Move close to use
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 29, 2022
1 parent 9133226 commit 5ef803f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/output/usage.rs
Expand Up @@ -364,8 +364,6 @@ impl<'cmd> Usage<'cmd> {
incl_last
);

let mut unrolled_reqs = FlatSet::new();

let required_owned;
let required = if let Some(required) = self.required {
required
Expand All @@ -374,6 +372,7 @@ impl<'cmd> Usage<'cmd> {
&required_owned
};

let mut unrolled_reqs = FlatSet::new();
for a in required.iter() {
let is_relevant = |(val, req_arg): &(ArgPredicate, Id)| -> Option<Id> {
let required = match val {
Expand All @@ -398,7 +397,6 @@ impl<'cmd> Usage<'cmd> {
// by unroll_requirements_for_arg.
unrolled_reqs.insert(a.clone());
}

debug!(
"Usage::get_required_usage_from: unrolled_reqs={:?}",
unrolled_reqs
Expand Down

0 comments on commit 5ef803f

Please sign in to comment.