Skip to content

Commit 8bf8afa

Browse files
committed
style: fix formatting
1 parent 8f59fcb commit 8bf8afa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clap_builder/src/parser/validator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,16 @@ impl<'cmd> Validator<'cmd> {
343343

344344
fn is_missing_required_ok(&self, a: &Arg, conflicts: &Conflicts) -> bool {
345345
debug!("Validator::is_missing_required_ok: {}", a.get_id());
346-
346+
347347
// If this argument is conditionally required (i.e., required by other present arguments
348-
// through the 'requires' relationship), it's NOT OK for it to be missing, even if it
349-
// conflicts with other arguments. However, directly required arguments (marked as
348+
// through the 'requires' relationship), it's NOT OK for it to be missing, even if it
349+
// conflicts with other arguments. However, directly required arguments (marked as
350350
// required(true)) can still be bypassed by conflicts.
351351
if self.required.contains(a.get_id()) && !a.is_required_set() {
352352
debug!("Validator::is_missing_required_ok: false (conditionally required)");
353353
return false;
354354
}
355-
355+
356356
if !conflicts.gather_conflicts(self.cmd, a.get_id()).is_empty() {
357357
debug!("Validator::is_missing_required_ok: true (self)");
358358
return true;

0 commit comments

Comments
 (0)