From 0a635b9a20077e2f932a9baee527052d8ed45d9e Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 16 Jan 2024 14:15:48 -0600 Subject: [PATCH] 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 --- clap_builder/src/parser/validator.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clap_builder/src/parser/validator.rs b/clap_builder/src/parser/validator.rs index 55f4633cc44..119d43a5f66 100644 --- a/clap_builder/src/parser/validator.rs +++ b/clap_builder/src/parser/validator.rs @@ -429,6 +429,8 @@ impl<'cmd> Validator<'cmd> { "".to_owned() } }) + .collect::>() + .into_iter() .collect::>() } };