Skip to content

Commit 0f30ac7

Browse files
committed
refactor(parser): Remove function wrappers
1 parent 8cf6d11 commit 0f30ac7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/parser/parser.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,11 +1503,6 @@ impl<'cmd> Parser<'cmd> {
15031503
matcher.start_custom_group(group, source);
15041504
}
15051505
}
1506-
1507-
/// Increase occurrence of specific argument and the grouped arg it's in.
1508-
fn start_occurrence_of_arg(&self, matcher: &mut ArgMatcher, arg: &Arg) {
1509-
self.start_custom_arg(matcher, arg, ValueSource::CommandLine);
1510-
}
15111506
}
15121507

15131508
// Error, Help, and Version Methods
@@ -1542,7 +1537,7 @@ impl<'cmd> Parser<'cmd> {
15421537
// Add the arg to the matches to build a proper usage string
15431538
if let Some((name, _)) = did_you_mean.as_ref() {
15441539
if let Some(arg) = self.cmd.get_keymap().get(&name.as_ref()) {
1545-
self.start_occurrence_of_arg(matcher, arg);
1540+
self.start_custom_arg(matcher, arg, ValueSource::CommandLine);
15461541
}
15471542
}
15481543

0 commit comments

Comments
 (0)