Skip to content

Commit 0a635b9

Browse files
committed
fix(parser): Don't duplicate requireds when usage disabled
Skipping a test for now because we don't have a mixed-feature testing strategy. Fixes #5312
1 parent b250c0b commit 0a635b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clap_builder/src/parser/validator.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ impl<'cmd> Validator<'cmd> {
429429
"".to_owned()
430430
}
431431
})
432+
.collect::<FlatSet<_>>()
433+
.into_iter()
432434
.collect::<Vec<_>>()
433435
}
434436
};

0 commit comments

Comments
 (0)